Step 1: Start
Step 2: Declare three integer variables a, b, c
Step 3: Take input for a and b
Step 4: Compute sum, difference, product, division, and remainder
Step 5: Print the results
Step 6: End
#include<stdio.h> int main() { int a, b, c; printf("Enter First Number: "); scanf("%d", &a); printf("Enter Second Number: "); scanf("%d", &b); // Sum c = a + b; printf("\nSum of %d and %d is %d", a, b, c); // Difference c = a - b; printf("\nDifference of %d and %d is %d", a, b, c); // Product c = a * b; printf("\nProduct of %d and %d is %d", a, b, c); // Division c = a / b; printf("\nDivision of %d and %d is %d", a, b, c); // Remainder c = a % b; printf("\nReminder of %d and %d is %d", a, b, c); return 0; }
Enter First Number: 10 Enter Second Number: 3 Sum of 10 and 3 is 13 Difference of 10 and 3 is 7 Product of 10 and 3 is 30 Division of 10 and 3 is 3 Reminder of 10 and 3 is 1