C Program to subtraction of two numbers

Description

Get two integer numbers, subract both the integers and dispaly the difference
Sample Input 1:
6 5
Sample Sample Output 1:
-1
Input2:
65 4
Output2:
61

Solution

//Program to subraction of two numbers
#include<stdio.h>
int main()
{
	int num1,num2,diff;
	printf("Enter two numbers:");
	scanf("%d %d",&num1,&num2);
	diff=num1-num2;
	printf("\nDifference is : %d",diff);
	return  0;
}

Explanation

Get two integers a and b (using scanf statement)
Subract b from a, then store the difference in c (c=a-b)
print the value of c (using printf statement)