1.

Give the program of Java the program is 4321,321,21,1

Answer»

Your program for this pattern is
PUBLIC CLASS Program
{
public static VOID main(String[] ARGS) {
for(int i=4;i>=1;i--){
for(int j=i;j>=1;j--){
System.out.print(j);}
System.out.println();}
}
}



Discussion

No Comment Found