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

296 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: 5.0 j: 6