From 43c58e6145864632db73901abbbef48fc5b05c36 Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:56:16 -0600 Subject: [PATCH] vault backup: 2024-09-24 21:56:16 --- .../ECE1400/Chapter 6 Exercises.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/education/software development/ECE1400/Chapter 6 Exercises.md b/education/software development/ECE1400/Chapter 6 Exercises.md index e69de29..79320ab 100644 --- a/education/software development/ECE1400/Chapter 6 Exercises.md +++ b/education/software development/ECE1400/Chapter 6 Exercises.md @@ -0,0 +1,18 @@ +> 1. What output does the following program fragment produce? +```c +i = 1; +while (i <= 128) { + printf("%d ", i); + i *= 2; +} +``` + +Output: +``` +1 2 4 8 16 32 64 128 +``` + +> 2. What output does the following program fragment produce? +```c +i = 9384 +``` \ No newline at end of file