Menu


.

Write a program to find that value is Absolute.

#include< iostream.h >

#include< conio.h >

void main()

{

clrscr();

int a,b;

cout<<"Please enter any Number";

cin>>a;

if(a>=0)

cout<<"The Absolute value is"<<a;

else{

b=-1*a;

cout<<"The Absolute Value is"<<b;

}

getch();

}




Enjoy our courses Today