----------------------------------------------------
// Program to print Student information//
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
int age;
char name[25],city[20],clas[20];
clrscr();
cout<<"\nEnter name:";
cin>>name;
cout<<"\nEnter age:";
cin>>age;
cout<<"\nEnter class:";
cin>>clas;
cout<<"\nEnter City:";
cin>>city;
cout<<"\n------------------------------------------";
cout<<"\n\t Student Information ";
cout<<"\n\t Name : "<<name;
cout<<"\n\t Age : "<<age;
cout<<"\n\t Class: "<<clas;
cout<<"\n\t City : "<<city;
cout<<"\n------------------------------------------";
getch();
}
No comments:
Post a Comment