Latest News: multiplication table in java - multiplication in java

multiplication table in java - multiplication in java

 Multiplication Table in Java - 

Multiplication in Java 


import java.util.Scanner;

class MultiplicationTable
{
  public static void main(String args[])
  {
    int n, c;
    System.out.println("Enter an integer to print it's multiplication table");
    Scanner in = new Scanner(System.in);
    n = in.nextInt();
    System.out.println("Multiplication table of " + n);

    for (= 1; c <= 10; c++)
      System.out.println(+ "*" + c + " = " + (n*c));
  }
}



Popular Posts

MyMarket