- import java.util.Scanner;
- class TablesbyKidshelp
- {
- public static void main(String args[])
- {
- int n, c;
- System.out.println("Welcome To Tables by Kidshelp & Computerwizardi");
- 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+" is :-");
- for ( c = 1 ; c <= 10 ; c++ )
- System.out.println(n+"*"+c+" = "+(n*c));
- }
- }
Free ICSE, NCERT, CBSE solutions for classes 1 to 12. Get Free Workbook solutions along with free notes and much more
Monday, 21 July 2014
Java program To Print Multiplication Tables
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment