C program to read two numbers and print the difference between them.
Solution:
In this program, we will learn how to subtract two numbers using C program.
Output:

Solution:
In this program, we will learn how to subtract two numbers using C program.
#include<stdio.h>
int main()
{
int num1,num2, sub;
printf("Enter Two Numbers :\n");
scanf("%d %d", &num1, &num2);
sub=num1-num2;
printf("\nDifference Between %d & %d = %d",num1,num2,sub);
return 0;
}
Output:



