/* * Extremely simple (and silly) example of declaring and using variables * and doing input and output. */ #include int main(void) { int x = 5; int y = 10; printf("value of x = %d, value of y = %d\n", x, y); x = x + 1; printf("x = %d, x/10 = %d, x%%10 = %d\n", x, x/10, x%10); printf("enter x\n"); scanf("%d", &x); printf("value of x = %d, value of y = %d\n", x, y); printf("enter x, y\n"); scanf("%d %d", &x, &y); printf("value of x = %d, value of y = %d\n", x, y); return 0; }