8.txt (427B)
1 /* Exercise 6.8 */ 2 3 a) printf("%c\n", f[6]); 4 5 b) 6 printf("Give me a value: "); 7 scanf("%lf", &b[4]); 8 9 c) 10 for(i = 0; i < 5; i++) 11 g[i] = 8; 12 13 d) 14 double tot; 15 for(i = 0; i < 100; i++) 16 tot += c[i]; 17 18 e) 19 for(i = 0; i < 11; i++) 20 b[i] = a[i]; 21 22 f) 23 int l, s; /* large and small */ 24 for(i = 0; i < 99; i++) { 25 if(w[i] > large) 26 large = w[i]; 27 else if(w[i] < small) 28 small = w[i]; 29 } 30