From b5cfe462a35e6799cfd614a0f1a2b7dbb90960a9 Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Tue, 24 Sep 2024 22:01:16 -0600 Subject: [PATCH] vault backup: 2024-09-24 22:01:16 --- .../ECE1400/Chapter 6 Exercises.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/education/software development/ECE1400/Chapter 6 Exercises.md b/education/software development/ECE1400/Chapter 6 Exercises.md index 79320ab..bfb78fc 100644 --- a/education/software development/ECE1400/Chapter 6 Exercises.md +++ b/education/software development/ECE1400/Chapter 6 Exercises.md @@ -15,4 +15,19 @@ Output: > 2. What output does the following program fragment produce? ```c i = 9384 +do { + printf("%d ", i); + i /= 10; +} while (i <= 128); +``` + +Output: +``` +9384 938 93 9 +``` + +> 3. What output does the following `for` statement produce? +```c +for (i = 5, j = i - 1; i > 0, j > 0; --i, j = i - 1) + printf("%d ", i); ``` \ No newline at end of file