Maths Function ABS in C Program Tamil


#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
    int n,b;
    float m,c;
    long int o,d;
    clrscr();
    printf("\n        www.tutorjoes.com\n\n\n");
    printf("\nEnter the value :");
    scanf("%d",&n);
    b=abs(n);
    printf("\nAbsolute value : %d",b);
    printf("\nEnter the float value :");
    scanf("%f",&m);
    c=fabs(m);
    printf("\nAbsolute value : %f",c);
    printf("\nEnter the long int value :");
    scanf("%ld",&o);
    d=labs(o);
    printf("\nAbsolute value : %ld",d);
    getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming