whilefor
public c v1 · immutable#include <stdio.h>/* this is supposed to show how "For" and "while" statements work! */main(){int i;int x = 2; for(i = 2; i < 10000; i = i * 3) printf("%d\n", i); while(x <= 1000); { printf("%d\n", x); x = x * 3; }}