Ad Code

Responsive Advertisement

Simple input and output program.




//Simple input and output program.
#include<iostream>
using namespace std;
int main()
{
	int id;
	char name[10];

	cout<<"your id :";
	cin>>id;
	cout<<"Enter your name :";
	cin>>name;
	cout<<"your name is  : "<<name<<endl;
	cout<<"your id is : "<<id<<endl;
}
Enter your id : 19
Enter your name : abc

Your name is : abc
Your id is : 19

Post a Comment

0 Comments