while for문이랑 매우 비슷하다. 초기 값만 없다고 생각하면 될 거 같다. while(조건){ 조건이 성립할때 실행할 내용. (조건이 성립 조건이 true, 1이다.) } int sum = 0; int i = 1; while (i