0

What must i do to check my cpp program

I'm still a newb for these kind of things, so i need to know how the way to check my program (c++) is it ok or error... can anyone tell me how ?

28th Aug 2017, 8:21 AM
Ahmad Yahya
Ahmad Yahya - avatar
5 Réponses
+ 4
You're using the wrong operator for cin: change: cin << x << y; to: cin >> x >> y; After this fix your code works fine.
28th Aug 2017, 9:05 AM
ChaoticDawg
ChaoticDawg - avatar
0
press run at code playground
28th Aug 2017, 8:36 AM
Haris
Haris - avatar
0
I have tried your program twice. I got a compilation error. You can try by pushing the run button.
28th Aug 2017, 8:39 AM
Paul
Paul - avatar
0
Try this line for cin: cin >> x >> y;
28th Aug 2017, 9:03 AM
Paul
Paul - avatar
0
for a PC console alt+f9
28th Aug 2017, 9:13 AM
rahul negi
rahul negi - avatar