Likes

JAVA Lab03_Ans3

Write a Program to print the table of five.


Answer


public class table {

  public static void main(String [] args)
  int result;
 
   for (int i = 1; i <=10; i++) {
    result = i * 5;
 
  system.out.println("5 * " + i " = " + result);
 
   }
 }

 } 

No comments: