Объяснение:
#include<iostream>
using namespace std;
int main () {
int n;
cout << "n = ";
cin >> n;
n = n > 0 ? n+1 : n + 10;
cout << endl << "n = " << endl;
return 0;
}
Объяснение:
#include<iostream>
using namespace std;
int main () {
int n;
cout << "n = ";
cin >> n;
n = n > 0 ? n+1 : n + 10;
cout << endl << "n = " << endl;
return 0;
}