카테고리1

Chrome (1) GAME (2) HTML (3) Internet Explore (1) Movie (1) TIP (2) Windows (2) java (51) 건강 (1) 맛집 (1)

Post List

2017년 2월 27일 월요일

java]이중for문으로 *출력하기

// *
// **
// ***
// ****
// *****



for(int i=1; i<=5; i++){
for(int j=1; j<=i; j++){
System.out.print("*");
}
System.out.println();
}

댓글 없음:

댓글 쓰기