1.

Give the program of Java the program is 1234,123,12,1

Answer» PROGRAM for this pattern is:
public class Program
{
public STATIC void MAIN(String[] args) {
for(int i=4;i>=1;i--){
for(int j=1;j<=i;j++){
System.out.print(j);}
System.out.println();
}
}
}


Discussion

No Comment Found