notes/education/software development/ECE1400/Chapter 3 Exercises.md
2024-09-11 12:51:34 -06:00

340 B

1.

a. 86,1040 b. 3.02530e+01 c. 83.1620 d. 1e-06

2.

float x = 0.12345;
// a
printf("%-8.1e", x);
// b
printf("%10.6e", x);
// c
printf("%8.3f", x);
// d
printf("%-6.0f", x);

3.

a. Equivalent b. Equivalent c. Equivalent d. Equivalent

4.

i: 10 x: 0.3f j: 5

5.

x: 12.3f i: 45 f: 0.6f