Jumat, 12 Oktober 2012
membuat data mahasiswa menggunakan c++
#include <conio.h>
#include <iostream.h>
#include <stdio.h>
main ()
{
char nim[10] , nm [50] , jrs [30] , kls [10] ,
ipk[10];
cout<<"\t\t\t BIODATA MAHASISWA"<<endl;
cout<<"\t\t\t BINA SARANA INFOMATIKA"<<endl;
cout<<"\t\t ===========================\n\n";
cout<<"nim\t\t\t:";
cin>>nim;
cout<<"nama mahasiswa\t\t:";
gets (nm);
cout<<"jurusan\t\t\t:";
cin>> jrs;
cout<<"kelas\t\t\t:";
cin>>kls;
cout<<"ipk\t\t\t:";
cin>>ipk;
clrscr( );
cout<<"\t\t\t BIODATA MAHASISWA"<<endl;
cout<<"\t\t\t BINA SARANA INFOMATIKA"<<endl;
cout<<"\t\t ===========================\n\n";
cout<<"nomor induk mahasiswa : "<<nim<<endl;
cout<<"nama mahasiswa : "<<nm<<endl;
cout<<"jurusan : " <<jrs<<endl;
cout<<"kelas : "<<kls<<endl;
cout<<"ipk : "<<ipk<<endl;
;
getch ();
}