CHALLENGE ACTIVITY Given positive integer numInsects, write a while loop that prints that number doubled without reachin
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
CHALLENGE ACTIVITY Given positive integer numInsects, write a while loop that prints that number doubled without reachin
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