9 comments:

  1. import java.util.Scanner;

    class Test{

    public static void main(String ar[])
    {

    Scanner sc=new Scanner(System.in);
    int num;
    System.out.println("Enter Number");
    num=sc.nextInt();

    for(int i=1;i<=num;i++){

    for(int j=1;j<=10;j++){
    System.out.printf("%d ",i*j);
    }
    System.out.println();

    }


    }
    }

    ReplyDelete
  2. import java.util.Scanner;

    class Test
    {

    public static void main(String ar[])
    {

    int i=1,j=1,limit;
    System.out.print("Enter the limit: ");
    Scanner w=new Scanner(System.in);
    limit=w.nextInt();
    for(i=1;i<=limit;i++)
    {
    System.out.print("\nThe table of "+i+" is: ");
    for(j=1;j<=10;j++)
    System.out.print((j*i)+"\t");
    }
    }
    }

    ReplyDelete
  3. import java.util.Scanner;
    public class Multipication
    {
    public static void main(String args[])
    {
    int Number;
    Scanner scan=new Scanner(System.in);
    System.out.println("Enter the Number");
    Number=scan.nextInt();
    for(int i=1;i<=Number;i++)
    {System.out.println("Table of "+i);
    for(int j=1;j<=10;j++)
    {
    System.out.println(i+"*"+j+"="+(i*j));
    }
    System.out.println("");
    }
    }
    }

    ReplyDelete
  4. import java.util.Scanner;
    class Table
    {
    public static void main(String args[])
    {
    System.out.println("enter the number");
    Scanner sc=new Scanner(System.in);
    int num;
    num=sc.nextInt();
    for(int i=1;i<num;i++)
    {
    System.out.println("table of"+i);
    for(int j=1;j<=10;j++)
    {
    System.out.println(i+"*"+j+"="+(i*j));
    }
    }
    }
    }

    ReplyDelete
  5. import java.util.Scanner;
    class table {
    public static void main(String ar[])
    {
    Scanner scan = new Scanner(System.in);
    for(int i=1;i<=10;i++)
    {
    for(int j=1;j<=10;j++)
    { System.out.print(i*j +" ");
    }
    System.out.println();
    }
    }
    }

    output:
    1 2 3 4 5 6 7 8 9 10
    2 4 6 8 10 12 14 16 18 20
    3 6 9 12 15 18 21 24 27 30
    4 8 12 16 20 24 28 32 36 40
    5 10 15 20 25 30 35 40 45 50
    6 12 18 24 30 36 42 48 54 60
    7 14 21 28 35 42 49 56 63 70
    8 16 24 32 40 48 56 64 72 80
    9 18 27 36 45 54 63 72 81 90
    10 20 30 40 50 60 70 80 90 100

    ReplyDelete
  6. import java.util.*;
    public class LoopNested
    {
    public static void main(String args[])
    {
    int i,j,n;
    System.out.println("Enter number");
    Scanner sc=new Scanner(System.in);
    n=sc.nextInt();
    for(i=1;i<=n;i++)
    {
    for(j=1;j<=10;j++)
    {
    System.out.print(i*j+"\t");
    }
    System.out.println("");
    }
    }
    }

    ReplyDelete
  7. import java.util.Scanner;
    class Multi{
    public static void main(String ar[]){
    Scanner obj=new Scanner(System.in);
    int i,num,j;
    System.out.println("enter the value of number");
    num=obj.nextInt();
    for(i=1;i<=num;i++)
    {
    for(j=1;j<=10;j++)

    System.out.print(i*j+" ");

    System.out.println(" ");
    }
    }
    }

    ReplyDelete
  8. import java.util.*;

    class Mul{
    public static void main(String ar[]){
    Scanner s=new Scanner(System.in);
    int i=1,j=1,n,k=0;
    System.out.print("Enter the number you want mul table to end at: ");
    n=s.nextInt();
    System.out.println("The table of "+i+" is: ");
    for(i=1;i<=n;i++)
    {
    for(j=1;j<=10;j++)

    System.out.print((i*j)+" ");
    System.out.println();
    }

    }
    }

    ReplyDelete
  9. import java.util.Scanner;

    class Multiplication{

    public static void main(String ar[]){

    Scanner multi=new Scanner(System.in);
    int i=1,j=1,num;
    System.out.println("Enter a number");
    num=multi.nextInt();

    for(i=1;i<=num;i++){

    for(j=1;j<=10;j++){
    System.out.println(""+i*j);

    }
    System.out.println("");
    }
    }
    }

    ReplyDelete