+ 1

What wrong i am doing?? I am not getting output

logic behind this code i didn't get please help me https://code.sololearn.com/cX0nTU50qTQg/?ref=app

28th May 2017, 11:13 AM
Vega
Vega - avatar
3 Answers
+ 4
yeah true
28th May 2017, 11:50 AM
FLASH!!!
FLASH!!! - avatar
+ 3
cin gets user input. cout returns something to the screen as output. You don't have a cout command so nothing is returned,therefore no output.
28th May 2017, 11:43 AM
Haris
Haris - avatar
+ 1
num is read 5 times. nothing is done with the read input. What output are you looking for? there is no output statement.
28th May 2017, 11:28 AM
Venkatesh Pitta
Venkatesh Pitta - avatar