avatar

Member

rusell

Program To Show Multiplication Table Of A Number

(Feb 18 2017 at 03:21am)

// Java program to display the
Multiplication Table of a number.
import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
int n;
int c;
System.out.println("Enter Number To
Show It Multiplication Table ");
Scanner i = new Scanner(System.in);
n = i.nextInt();
System.out.println(" Multiplication
Table of " + n);
for (c=1; c<=20; c++) {
System.out.println(n + "*" + c + " = "
+ n*c);
}
System.out.println("Enter 1 to
continue");
Scanner in = new Scanner(System.in);
int g = i.nextInt();
if (g == 1) {
String[] s = null;
main(s);
}
}
}

[1K views]


You may also Like:

avatar

ADMIN

eaweb

Re- Program To Show Multiplication Table Of A Number

(Feb 18 2017 at 06:17am)

Nice one.


quote | like (0)
avatar

Member

rusell

Re- Program To Show Multiplication Table Of A Number

(Feb 18 2017 at 08:46am)

yeah boss


quote | like (0)

Quick reply


add files