1234

Solution-3


public class Star2 {

public static void main(String[] args) {
for(int k=0;k<=4;k++)
{
for(int l=4;l>=k;l--)
{
System.out.print(k);
}
System.out.println("");
}

// TO DO Auto-generated method stub

}

}

1 comment: