give the syntax for input and output operator
Answers
Answered by
0
Answer:
in which programming language??
Explanation:
Answered by
0
Input and Output operator
Explanation:
The input operator is also usually recognized as the extrαction operator '>>' in the C++ Programming Language which is mainly used to get input from the user through the built-in keyword that is 'cin'.
Syntax:
cin>>variable_name;
Example:
int a;
cin>>a;
The output operator is also usually recognized as the insertion operator '<<' in the C++ Programming Language which is mainly used to print result, any string or both at the same time through the built-in keyword that is 'cout'.
Syntax:
cout<<variable_name;
cout<<"hello programmer";
cout<<"Your Id is: "<<variable_name;
Example:
int a=5;
cout<<"your Id is : "<<a;
Learn More:
https://brainly.in/question/6446545
Similar questions