решение на С++
#include<iostream>using namespace std;int main(){ int a, b; cout << "vvedite 2 chisla" << endl; cin >> a; cin >> b; if(a > b){ a = a - 5; cout << "a = " << a << endl; } else { b = b - 5; cout << "b = " << b << endl; }}
решение на С++
#include<iostream>
using namespace std;
int main(){
int a, b;
cout << "vvedite 2 chisla" << endl;
cin >> a;
cin >> b;
if(a > b){
a = a - 5;
cout << "a = " << a << endl;
}
else
{
b = b - 5;
cout << "b = " << b << endl;
}
}