Sir why in a program cout(output) comes firt and cin(input) comes later | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Sir why in a program cout(output) comes firt and cin(input) comes later

c++ programming

16th Oct 2018, 1:35 PM
Hassan Raza
2 Answers
+ 3
You should know that cout and cin have nothing to do with it's order, you can use them as you want. cout : display (output) cin : read (input)
16th Oct 2018, 1:51 PM
khalid el badaoui
+ 2
It doesn't have to be that way If you want. But the majority of the times you want to tell the user what you need him to enter, and that's why you use cout first.
16th Oct 2018, 1:42 PM
Ulisses Cruz
Ulisses Cruz - avatar