Code to subtract two integers value Arithmetic Operators
first, use the 3 variables then print the statement of entering the value then store the value then subtract the number then print the value.
#include<stdio.h>
#include<conio.h>
int main(){
int a,b, sum;
printf("enter two integers:");
scanf("%d%d",&a,&b); // store the value
sum=a-b; //subtraction the value
printf("Answer:-%d",sum);
return 0;
}
output:-
Enter two integers:12
5
Answer:-7