C++ Biodata

#include<iostream.h>
#include<conio.h>

main()
{//variable
char a[100],b[100],c[100],d[100],e[100],f[100],g[100],i[100],j[100],k[100];
int h;

cout<<"MR-KEPO"<<endl;
cout<<endl;
cout<<"Nama kamu siapa? ";
cin.getline(a, sizeof(a));
cout<<"Lahir dimana? ";
cin.getline(b, sizeof(b));
cout<<"Kapan? ";
cin.getline(c, sizeof(c));
cout<<"Sekarang tinggal dimana? ";
cin.getline(d, sizeof(d));
cout<<"itu Desa mana? ";
cin.getline(e, sizeof(e));
cout<<"Kecamatan apa? ";
cin.getline(f, sizeof(f));
cout<<"Itu di Kota mana? ";
cin.getline(g, sizeof(g));
cout<<"Kodepos nya berapa? ";
cin>>h;
cin.getline(i, sizeof(i));
cout<<"Dulu pernah SD dimana? ";
cin.getline(i, sizeof(i));
cout<<"Kalo SMP nya dimana? ";
cin.getline(j, sizeof(j));
cout<<"SMA nya? ";
cin.getline(k, sizeof(k));
cout<<endl;
cout<<"-BIODATA-"<<endl;
cout<<"Nama               : "<<a<<endl;
cout<<"TTL                : "<<b<<", "<<c<<endl;
cout<<"Alamat             : "<<d<<" "<<e<<" "<<f<<" "<<g<<" "<<h<<endl;
cout<<"Riwayat Pendidikan : 1. SD  : "<<i<<endl;
cout<<"                     2. SMP : "<<j<<endl;
cout<<"                     3. SMA : "<<k<<endl;
getch();
}

0 Response to "C++ Biodata"

Posting Komentar