write a program to subtract two numbers in C language
#include <stdio.h>
#include <conio.h>
int main()
{
int a,b,c;
printf("Enter two numbers to subtract\n");
scanf("%d%d",&a,&b);
Subtraction=a-b;
printf("Subtraction of the entered numbers=%d\n",c);
return 0;
}
OUTPUT: -
Enter two numbers to subtract
7
3
Subtraction of the entered numbers= 4


No comments:
Post a Comment