WAP to calculate absolute value of a given number



#include<math.h>

void main()

{

int a,d;

clrscr();

printf("Enter the value of a");

scanf("%d",&a);

d=abs(a);

printf("%d",a);

getch();

}

No comments:

Post a Comment