public class case1
{
public static void main(String args[])
{
char temp[][] = new char[5][5];
for(int i=0; i < 5 ; i++)
{
for(int j = 4 - i ; j < 5 ; j++)
{
temp[i][j] = '*';
System.out.print(temp[i][j]+"");
}
System.out.println();
}
}
}
*
**
***
****
*****

 

0,4에 별이 찍히는데

0,0 0,1 0,2 0,3 에 아무것도 없어서

그냥 왼쪽정렬 된것처럼 표현이 되는거구나

대박이넹

 

그러면 빈공간에 띄어쓰기 넣으며ㅓㄴ대여??