// An example declaring and printing variables // of types int, double and char // for COMP1511/1911 24T3 // Written by: z9801583 // Date: #include int main(void) { char initial; printf("Please enter your first initial: "); scanf("%c", &initial); int age; printf("Please enter your age: "); scanf("%d", &age); double height; printf("Please enter your height in cm: "); scanf("%lf", &height); printf("Initial: %c Age: %d Height: %lf\n", initial, age, height); // Complete double x; double y; printf("Please enter x and y: "); scanf("%lf %lf", &x, &y); printf("(%lf, %lf)\n", x, y); // What happens if the user does not type in the right thing ? return 0; }