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