i = 1 sum = 0 limit = 100; while true do sum += i if sum > limit then break end i += 1 end printf( "上限は%dです\n" , i )