#include<iostream>
using namespace std;
int main()
{
float num;
cout<< "Enter any number:" ;
cin>>num;
if (num>0)
{
cout<< "The absolute value of number is:" <<num;
}
else
{
cout<< "The absolute value of number is:" <<(num);
}
return 0;
}

OUTPUT
Enter any number:9
The absolute value of number is:9
Like this:
Like Loading...
Related
Published by Fahim Ajmal
I want to spread various technological,islamic links and amazing wallpapers among the people of the world
View all posts by Fahim Ajmal
Published