Page 1 of 1

CHALLENGE ACTIVITY Given positive integer numInsects, write a while loop that prints that number doubled without reachin

Posted: Fri Jul 08, 2022 6:16 am
by answerhappygod
Challenge Activity Given Positive Integer Numinsects Write A While Loop That Prints That Number Doubled Without Reachin 1
Challenge Activity Given Positive Integer Numinsects Write A While Loop That Prints That Number Doubled Without Reachin 1 (55.35 KiB) Viewed 37 times
In C language.
CHALLENGE ACTIVITY Given positive integer numInsects, write a while loop that prints that number doubled without reaching 100. Follow each number with a space. After the loop, print a newline. Ex: If numInsects = 8, print: 8 16 32 64 4.3.3: While loop: Insect growth. 415226.2573686.qx3zqy7 1 #include <stdio.h> 2 3 int main(void) { 4 int numInsects; 5 6 7 8 9 10 11} Run scanf("%d", &numInsects); // Must be >= 1 *Your solution goes here */ return 0; 1 test passed All tests passed