Name age and address of students are stored in a string..
Select To use this code as it is.. select and copy paste this code into code.cpp file :)
- #include<iostream.h>
- #include<conio.h>
- #include<stdio.h>
- void main()
- {
- clrscr();
- char name[100],age[100],address[100];
- cout<<"Please enter a name: ";
- gets(name);
- cout<<"Please enter age: ";
- //Coding by: Snehil Khanor
- //http://WapCPP.blogspot.com
- gets(age);
- cout<<"Please eneter address: ";
- gets(address);
- cout<<endl<<endl<<"Name is: "<<name<<endl<<"Age is: "<<age<<endl<<"Address is:
- "<<address;
- getch();
- }
0 comments:
Post a Comment