Pages

Monday, November 4, 2013

Bornag maklumat peribadi

#include<iostream>

using namespace std;
int main()

{
    char name[20],matrix_no[10],program[20];
    int age,height,weight;
    
    cout<<"Name:"<<endl;
    cin >>name;
    cout<<"Matrix No:"<<endl;
    cin >>matrix_no;
    cout<<"Program :"<<endl;
    cin >>program;
    cout<<"Age:"<<endl;
    cin >>age;
    cout<<"Height:"<<endl;
    cin >>height;
    cout<<"Weight:"<<endl;
    cin >>weight;
    
    system("PAUSE");
    return 0;

}


output :

Name:
nik
Matrix No:
13A06037
Program :
DEEI
Age:
18
Height:
12
Weight:
32

No comments:

Post a Comment