writhe a c++ program to input your name and roll no and display them on the screen.
Answers
Answered by
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();
}
#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