0

how to input / output & ( comments ) in cpp ?

In the comments code practice (very new to this) I can’t seem to get the code to run, it keeps telling me there is not input but it’s seems to be I’ve set it out just like the example?! But when you run the example, it doesn’t ignore the line…I’m confused…sorry! Please help!!!

7th Feb 2022, 9:50 PM
Holly Andrews
4 ответов
+ 4
Provide more details please. Be specific. We don't know what language you're referring to, and we don't have the context we need to help you.
7th Feb 2022, 10:01 PM
Forrest Ogden
Forrest Ogden - avatar
+ 2
Holly Andrews looks like you are in the cpp course so input begins with cin >> x; /* input */ int x; cin >> x; /* output */ cout << x << endl; output is cout << x << endl; As far as comments these are solely for the coder / program information / not seen by the the enduser of the code.
8th Feb 2022, 2:00 AM
BroFar
BroFar - avatar