#include "iostream"
#include "stdlib.h"
#include "locale.h"
using namespace std;
int main(){
setlocale(LC_ALL, "russian");
int A, B;
cout << "Ââåäèòå ïåðâîå ÷èñëî: "; cin >> A;
cout << "Ââåäèòå âòîðîå ÷èñëî: "; cin >> B;
if (A > B){
cout << "Âòîðîé" << endl;
}else if (A < B){
cout << "Ïåðâûé" << endl;
}else cout << "Îíè ðàâíû" << endl;
system("pause");
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
using namespace std;
int main(){
int a = 0, b = 0;
cin >> a >> b;
if (a < b){cout << 1;}
else{cout << 2;}
}
#include "iostream"
#include "stdlib.h"
#include "locale.h"
using namespace std;
int main(){
setlocale(LC_ALL, "russian");
int A, B;
cout << "Ââåäèòå ïåðâîå ÷èñëî: "; cin >> A;
cout << "Ââåäèòå âòîðîå ÷èñëî: "; cin >> B;
if (A > B){
cout << "Âòîðîé" << endl;
}else if (A < B){
cout << "Ïåðâûé" << endl;
}else cout << "Îíè ðàâíû" << endl;
system("pause");
return 0;
}