|
#include <stdio.h> int main(void) { int x, y; printf("Enter 1st number: "); scanf("%d", &x); printf("Enter 2nd number: "); scanf("%d", &y); printf("\n%d + %d = %d", x, y, x + y); printf("\n%d - %d = %d", x, y, x - y); printf("\n%d * %d = %d", x, y, x * y); printf("\n%d / %d = %d", x, y, x / y); printf("\n\nOne more time! \n\n"); printf("Enter 1st number: "); scanf("%d", &x); printf("Enter 2nd number: "); scanf("%d", &y); printf("\n%d + %d = %d", x, y, x + y); printf("\n%d - %d = %d", x, y, x - y); printf("\n%d * %d = %d", x, y, x * y); printf("\n%d / %d = %d", x, y, x / y); return 0; }