- 1
X;
1<0
4 ответов
0
x=x*(-1), ie x=5; x=5*(-1) x=-5
+ 9
#include <iostream>
int main()
{
int x;
std::cin >> x;
if (x < 0) x *= -1;
std::cout << "Absolute value of x : " << x;
return 0;
}
+ 2
Please do not put Code in tags
0
prop