while,forはjavaと同じ
#include<stdio.h> main() { int i = 0; while(i<5){ printf("i = %d\n",i); i++; } for(i=10;i<15;i++){ printf("i = %d\n",i); } }