Computer Science, asked by Maria1130, 1 year ago

writhe a c++ program to input your name and roll no and display them on the screen.

Answers

Answered by RohitSP
1
#include <iostream.h>
#include<conio.h>
main ()
{
clrscr();
char name;
int num;
cout<<"Enter your name ";
cin>>name;
cout<<"\nEnter your roll no. ";
cin>>num;
cout<<"\nYour name is "<<name<<" and your roll no. is "<<num;
getch();
}
Similar questions