Source code
- #include<iostream>
- #include<stdio.h>
- #include<conio.h>
- using namespace std;
- int main()
- {
- char nama[30], alamat[100], tmptlhr[35], tglhr[45], nim[18], prodi[35], kl[25];
- {
- cout<<"\t\t Biodata Siswa SmK Manda \n"<<endl;
- cout <<" Nama\t\t : ";
- cin.getline(nama, sizeof(nama));
- cout <<" Alamat\t\t : ";
- cin.getline(alamat, sizeof(alamat));
- cout <<" Tempat Lahir\t : ";
- cin.getline(tmptlhr, sizeof(tmptlhr));
- cout <<" Tanggal Lahir\t : ";
- cin.getline(tglhr, sizeof(tglhr));
- cout <<" NIS\t\t : ";
- cin.getline(nim, sizeof(nim));
- cout <<" Prodi\t\t : ";
- cin.getline(prodi, sizeof(prodi));
- cout <<" Jenis Kelamin\t : ";
- cin.getline(kl, sizeof(kl));
- cout<<endl;
- cout<<"\n Data Saya :"<< endl;
- cout <<" Nama \t\t : "<< nama << endl;
- cout <<" Alamat \t : "<< alamat << endl;
- cout <<" Tempat Lahir\t : "<< tmptlhr << endl;
- cout <<" Tanggal Lahir \t : "<< tglhr << endl;
- cout <<" NIS\t\t : "<< nim << endl;
- cout <<" Prodi\t\t : "<< prodi << endl;
- cout <<" Jenis Kelamin\t : "<< kl << endl;
- }
- getch();
- }
0 Comments