0

Have problem in C++

#include <iostream> using namespace std; int main() { //Your code int x; cin>>x; while(0>x<50){ if(x<50) cout<<50-x; break; else if(x>50) x-50; } } return 0; } Check my code. I can't find problem. Copy it and past in your IDE.

17th Nov 2021, 11:11 PM
Kovalov Evgen
Kovalov Evgen - avatar
2 Respuestas
+ 4
_ᙢǾሊỢȡΘŬ_ while (0 > x < 50) //wrong syntax
17th Nov 2021, 11:13 PM
A͢J
A͢J - avatar
+ 2
What does your compiler say ? wasn't the warnings and error messages clear enough to convey the problems in your program ? if so, then which perticular message didn't made sense to you ?
18th Nov 2021, 12:41 AM
Arsenic
Arsenic - avatar