/* hello-1.c Illustrates: printf, fflush, stdin, stdout ** produces a warning about unused argc, argv ** */ #include #include #include int main( int argc, char *argv[] ) { int x,y; printf("Hello World: Enter two small positive numbers for x and y: "); fflush(stdout); /* needed because output streams are buffered */ scanf("%d %d", &x, &y); printf("\nYou entered %d for x and %d for y\n", x,y); return 0; }