Click here to Upload your own logic for this program.

Subtract the two numbers


Program:


#include<stdio.h> main() { int x,y,z; printf("Enter the first number: "); scanf("%d",&x); printf("Enter the second number: "); scanf("%d", &y); z=x-y; printf("Subtraction of the two numbers is: %d", z); }
Output:
		

Enter the first number: 5 Enter the second number: 4 Subtraction of the two numbers is: 1


Program:


#include main() { printf(" Cse "); int a,b,c; printf("enter the numbers that you want to subtract:-"), scanf("%d %d",&a,&b); c=a-b; printf("the result is %d",c); }
Output:
		

Cse enter the numbers that you want to subtract:- 15 10 the result is 5