Fundamentals12 / 16
Up next

while loop

#include <stdio.h>

int main(void) {
    int n = 1;
    while (n < 100) {
        n *= 2;
    }
    printf("%d\n", n);
    return 0;
}
What you're solving

repeat until a condition is false