Answer the question
In order to leave comments, you need to log in
How to check the output of cin?
#include <iostream>
#include <string>
using namespace std;
int main() {
int a, b;
cout << "write a \n";
cin >> a;
cout << "write b \n";
cin >> b;
if (a > b) {
cout << a << " a bolshe \n";
}
else if (a == b) {
cout << a << " ravno " << b << "\n";
}
else if (a < b) {
cout << b << " b bolshe \n";
}
else {
cout << " ERROR \n";
}
system("pause");
return 0;
}
write a
y
write b
-858993460 ravno -858993460
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question