자유게시판

시삽: 레드플러스 님 
게시판 이동:
 제목 : 잠시 ....
글번호: 164
작성자: 박용준
작성일: 2001/06/12 오후 5:17:00
조회수: 2362
public class Ex
{
    public static void main(String args[])
    {
        for (int i = 1; i < 5; i++)
        {
            for (int j = 9; j > 0; j--)
            {
                if (i >= j) System.out.print("*");
                else System.out.print(" ");
            }
            
            
            for (int j = 2; j < 10; j++)
            {
                if (i >= j) System.out.print("*");
            }
            
            
            System.out.println();
        }
        
        
        for (int i = 5; i > 0; i--)
        {
            for (int j = 9; j > 0; j--)
            {
                if (i >= j) System.out.print("*");
                else System.out.print(" ");
            }
            
            for (int j = 2; j < 10; j++)
            {
                if (i >= j) System.out.print("*");
            }

            System.out.println();
        }
        
    }
}



 
이전 글   다음 글 삭제 수정 답변 글쓰기 리스트

(댓글을 남기려면 로그인이 필요합니다.)

관련 아티클 리스트
  제       목 파일 작성자 작성일 조회
이전글 잠시... - 세컨드 2001-06-12 2370
현재글 잠시 .... - 박용준 2001-06-12 2362
다음글 asp?? - 하이 2001-06-01 2458
 
손님 사용자 Anonymous (손님)
로그인 Home