notes/education/software development/ECE1400/Chapter 6 Exercises.md
2024-09-24 21:56:16 -06:00

245 B

  1. What output does the following program fragment produce?
i = 1;
while (i <= 128) {
	printf("%d ", i);
	i *= 2;
}

Output:

1 2 4 8 16 32 64 128
  1. What output does the following program fragment produce?
i = 9384