Что не так с кодом!? Не могу написать... к vvdeite b
#include

using namespace std;

int main()

{

int m, a, b, x;

cout << "Vvedite a: " ;

cin >> a ;

cout << "Vvedite b: " ;

cin >> b ;

cout << "Vvedite x: " ;

cin >> x ;

if (x < 1) m = x + 1;

else if (x == 1) m = a - x + b;

else if (x > 1) m = x - (b/a);

cout << "m=" << m << endl;

return 0;

}
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Copyright © 2024 SCHOLAR.TIPS - All rights reserved.