Input and OutPut Statment in C/C++

Cout/Cin Function IN C /C++

cout and cin is one of the standard library function which are used for input/output purpose.
cout Standard out Put Function:
cout is an instance of iostream class and standard output, which usually is the display screen. The cout is used in conjunction with the stream insertion operator, which is written as << which are two less than signs.
Where cin is used as standard input mostly keyboard. cin is also used with conjunction with extraction operator, which is written as >> (i.e., two "greater than" signs). This operator is then followed by the variable where the extracted data is stored.
For example:


#include <iostream>
void main(void)

 {
int marks;

cout<<"Please Enter The Marks:";

cin>>marks;

}

With cout and cin we can do more then one output or inut in one line
For example


#include <iostream>
void main(void)

 {

int x,y;
cout<<"This is First Line"<<"\n"<<"This is Second Line"<<"\n"<<"This is Third Line";

cin>>x>>y;   // this statment will take the value of two variable x and y

}