#include<stdio.h>
#include<conio.h>
void main()
{
int num;
clrscr();
printf("enter the number");
scanf("%d",&num);
if(num<0)
{
num=-num;
printf("the absolute of no. is %d",num);
}
else
{
printf("the absolute of no. is %d",num);
}
getch();
}
#include<conio.h>
void main()
{
int num;
clrscr();
printf("enter the number");
scanf("%d",&num);
if(num<0)
{
num=-num;
printf("the absolute of no. is %d",num);
}
else
{
printf("the absolute of no. is %d",num);
}
getch();
}
No comments:
Post a Comment