Java X ICSE Solutions

Q 1. Write a program to print following pattern using BLUE J IDE. 1234321 123*321 12***21 1*****1 Ans : Following program is tried and tested in Blue J 3.08 version. class jaiii { public static void main(String args[]) { int i,j,l; for(i=4;i>=1;i–) { for(j=1;j<=i;j++) System.out.print(j); for(int m=i;m<4;m++) //increment o * System.out.print(“*”); for(int n=3;n>i;n–) //decrement of … Read more