C Program to subtract two numbers (Subtraction Operator)

 //  C Program to subtract two numbers

 #include<stdio.h>                //header file declaration

int main()                             //main method

{

     int n1, n2, sub;                //variable declartion

     printf("\n Input Two Numbers:");

     scanf("%d %d", &n1,&n2);                //Input numbers

     sub=n1-n2;                //subtraction opeartor

     printf("The subraction of two numbers is: %d", sub);        //print results

     return 0;

}

OUTPUT:



Comments