From 2a86cc053b6795fa5a475d9141a7857a40aa9533 Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Wed, 11 Sep 2024 12:11:34 -0600 Subject: [PATCH] vault backup: 2024-09-11 12:11:34 --- .../ECE1400/Chapter 3 Exercises.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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