Selasa, 23 Oktober 2012

C++ LATIHAN CIN

#include    <iostream.h>
#include    <conio.h>
void main ()
{
int induk;
clrscr();
cout << "nomor induk anda :"<<endl;
cin >> induk;

char nama[100] ;
cout<<"masukan nama anda :"<<endl;
cin >> nama;

int nilai ;
cout <<"berapa nilai TIK anda? "<<endl;
cin >> nilai;

cout <<"-------------------------------------------------" << endl;

cout << "nomor induk anda :"<<induk<<endl;
cout << "nama lengkap anda :"<<nama<<endl;
cout << "nilai tik anda :"<<nilai<<endl;

getch ();
}

0 comments:

Posting Komentar