Skip to content

Program to Display Multiplication Table- loop

 Program to Display Multiplication Table- loop


Code:

/* Program to Display Multiplication Table */
class MultiplicationTable{
      public static void main(int num){
      
      System.out.println(“*****MULTIPLICATION TABLE*****”);
      for(int i=1;i<=num;i++){
         for(int j=1;j<=num;j++){
            System.out.print(” “+i*j+” “);
         }
         System.out.print(“n”);
      }
  }
}

Comment below for your Query and Feedback… 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!