stack2
#include<iostream.h>
#include<conio.h>
main()
{
struct {
int nim;
char nama[50];
}mahasiswa;
cout<<"Masukkan nim anda : ";
cin>>mahasiswa.nim;
cout<<"masukkan nama anda : ";
cin>>mahasiswa.nama;
cout<<"Data yg anda inputkan"<<endl;
cout<<"---------------------"<<endl;
cout<<"nim anda : "<<mahasiswa.nim<<endl;
cout<<"nama anda : "<<mahasiswa.nama<<endl;
getch();
}
Comments
Post a Comment