반복문(for, while, do-while)
2017. 1. 13. 01:13
반복문(for, while, do-while) 반복문은 어떤 작업을 반복적으로 수행되도록 할 때 사용한다.반복문의 종류에는 for, while, do-while문이있다. while문조건문의 실행결과가 ture일 때까지 반복 실행 while(조건문){실행문;} while문 실습123456789101112131415161718192021222324package com.doubles.javabasic.loops; public class JavaLoopWhile { public static void main(String[] args){ /*while(true){ System.out.println("DoubleS"); // 출력 무한반복 }*/ /*while(false){ System.out.println("Do..