hello there what is the code used when a user input one number and it will displays its absolute value for example if the user input -3 the output is 3 and if the user input a positive value or 0 then it will concide with the input???
thanks....Code:<iostream> using namespace std; int main() { int nm; cout << "please input any number\n"; cin>> nm; //what code is needed here? cout << "number is " << nm << "\n"; }