Chapter 2 Programming Exercises PE 2-.‐1 /* Programming Exercise 2-1 */ #include 〈stdio.h> int main(void) { printf(”Gustav Mahler\n”); printf("Gustav\nMahler\n"); printf(”Gustav "); printf(”Mahler\n"); return 0; } PE 2-。‐3 /* Programming Exercise 2—3 */ #include 〈stdio.h> int main(void) { int ageyears; /* age in years */ int agedays; /* age in days */ /* large ages may require the long type */ ageyears = 101; agedays = 365 * ageyears; printf("An age of %d years is %d days。\n”, ageyears, agedays); return 0; } PE 2—.‐4 /* Programming Exercise 2-4 */ #include 〈stdio.h> void jolly(void); void deny(void); int main(void) { jolly(); jolly(); jolly(); deny(); return 0; } void jolly(void) { printf("For he's a jolly good fellow!\n"); } void deny(void) { printf(”Which nobody can deny!\n”); } PE 2—。‐6 /* Programming Exercise 2-6 */ #include int main(void) { int ascii; printf(”Enter an ASCII code: "); scanf(”%d", &ascii); printf("%d is the ASCII code for %c。\n”, ascii, ascii); return 0; } PE 3-....