#include <iostream.h>
#include <stdio.h>
void main()
{
char nama[30],alamat[30],asal[30],jurusan[30],nim[50];
cout<<"Masukkan nama : ";gets(nama);
cout<<"Masukkan nim : ";gets(nim);
cout<<"Masukkan alamat : ";gets(alamat);
cout<<"Masukkan asal : ";gets(asal);
cout<<"Masukkan jurusan : ";gets(jurusan);
cout<<endl<<endl;
cout<<"Dan Ternyata Keluar ?????\n";
cout<<endl<<endl;
cout<<"Nama : "<<nama<<endl;
cout<<"Nim : "<<nim<<endl;
cout<<"Alamat : "<<alamat<<endl;
cout<<"Asal : "<<asal<<endl;
cout<<"Jurusan : "<<jurusan<<endl;
}
1 comments:
Write commentsWah bagus tutorial nya mas :)
ReplyThanks