/* * Very very simple program illustrating use of variables and * simple I/O. */ #include int main(void) { /* variables of two familiar types */ int x = 10; double y = x + 0.1; /* print their values */ printf("%d %f\n", x, y); /* prompt for and get new value for integer */ printf("enter an integer\n"); /* no error checking -- we will add that later */ scanf("%d", &x); /* print new values */ printf("%d %f\n", x, y); return 0; }