Biodata dengan C++

Tuesday, March 29, 2011 7:42 AM by Computer and Programming
#include <iostream>
#include <conio>
main(){
char NIM, Nama;
int SKS,Variabel, Jumlah;
cout<<"Masukkan NIM Anda =\n";
cin>>NIM;
cout<<"Masukkan Nama Anda =\n";
cin>>Nama;
cout<<"Masukkan Jumlah SKS =\n";
cin>>SKS;
cout<<"Masukkan Variabel/SKS =\n";
cin>>Variabel;

Jumlah=SKS*Variabel;
cout<<"                       DATA ANDA \n";
cout<<endl;
cout<<"\n    Nama                        : "<<Nama;
cout<<"\n    NIM                         : "<<NIM;
cout<<"\n    Jumlah SKS Yang Anda Ambil : "<<Nama;
cout<<"\n    SKS Variabel Yang HArus Anda Bayar : "<<Jumlah;
getch();
}

0 Response to "Biodata dengan C++"

Post a Comment