Write a C++ program to display your name and roll number using function. with output
Answers
Answered by
1
Explanation:
#include<iostream.h>
#include<conio.h>
void main()
{
char name[20];
char clas[6];
int roll;
cout<<"nEnter Name:";
cin>>name;
cout<<"nEnter Class:";
cin>>clas;
cout<<"nEnter Rollnumber:";
cin>>roll;
cout<<"nHello!!t"<<name<<"nYour class ist"<<clas<<"nYour rollnumber ist"<<roll;
cout<<"nThank you";
cout<<"nPress any key to continue…";
getch();
}
Similar questions
English,
2 days ago
Environmental Sciences,
2 days ago
History,
4 days ago
Math,
4 days ago
Computer Science,
8 months ago
English,
8 months ago
Geography,
8 months ago