Search This Blog

Translate

c absolute value float, absolute value in c language, abs in c programming

c absolute value float,absolute value in c language,abs in c programming

C Program to Display absolute value of given  number

void main()
{
    int no;
    clrscr();
    printf("Enter the number=");
    scanf("%d",&no);
    if(no<0 br="">    {
        printf("The absolute number of %d is= %d",no,no*-1);
    }
    else
    {
        printf("The absolute number of %d is=%d",no,no);
    }
    getch();
}


C Program to Display absolute value of given  number, c absolute value float,absolute value in c language,abs in c programming

C Program example List

Google+ Badge