C Program to Convert Negative to Positive

 #include<stdio.h>

void main()

{

    int n;

    printf("Enter number: ");

    scanf("%d",&n);


    if(n<0)

    n= -n;

    printf("Number = %d",n);

}

Comments

Popular posts from this blog

Single Program Using All Automatic String Functions

C program for subtraction of two matrices (2D Arrays)

C program for Multiplication of Two matrices