diff --git a/education/software development/ECE1400/Chapter 3 Exercises.md b/education/software development/ECE1400/Chapter 3 Exercises.md index 963eed8..474cbaa 100644 --- a/education/software development/ECE1400/Chapter 3 Exercises.md +++ b/education/software development/ECE1400/Chapter 3 Exercises.md @@ -5,4 +5,15 @@ c. `83.1620` d. `1e-06 ` # 2. -a. `printf` \ No newline at end of file +```c +float x = 0.12345; +// a +printf("%-8.1f", x); +// b +printf("%10.6f", x); +// c +printf("%8.3f", x); +// d +printf("%-6.0g", x); +``` +c. \ No newline at end of file