C Program to perform Subtraction of Two Integers

 C Program to Perform Subtraction of Two Integers






// C program to perform subtraction of two integers

#include<stdio.h>

void main()

{

    int a;

    int b;

    int sub;

    printf("\t\t\t\t** INPUT **\n");

    printf("Enter first number\n");

    scanf("%d", &a);

    printf("Enter second number\n");

    scanf("%d",&b);

    sub=a-b;

    printf("\t\t\t\t\t\t*** OUTPUT of Program ***\n");

    printf("The subtraction of two integers is:%d\t",sub);

    printf("\nEnd of program");

}

 

** INPUT **

Enter first number

100

Enter second number

200

*** OUTPUT of Program ***

The subtraction of two integers is:- 100    

End of program

 


टिप्पणी पोस्ट करा

0 टिप्पण्या