Subtract of two integers
#include <stdio.h>
int main() {
int number1, number2, sub;
printf("Enter two integers: ");
scanf("%d %d", &number1, &number2);
// calculating subtract
sub = number1 - number2;
printf("%d - %d = %d", number1, number2, sub);
return 0;
}
Output
Enter two integers: 15
10
15 - 10 = 5
0 Comments