Page 308 - CA_Blue( J )_Class9
P. 308

84          System.out.println("Net Payable Amount: Rs." + Amount_Payable);
                    85            System.out.println("                                                             ");

                    86      }
                    87  }





























                                  Write a project to draw the following pattern.
                   Project   3





















                     1      import java.util.*;

                     2      public class hollo_square
                     3      {

                     4          public static void main(String args[])
                     5      {

                     6          Scanner s = new Scanner(System.in);
                     7          int n;

                     8          System.out.print("Enter the number of rows: ");
                     9          n = s.nextInt();



                   306    Touchpad Computer Applications-IX
   303   304   305   306   307   308   309   310   311   312   313