Multiplication Table Generator upto 20 digits!

In Written format!! import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); for(int i = 0;i

Mar 9, 2025 - 17:17
 0
Multiplication Table Generator upto 20 digits!

Image description

In Written format!!

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        for(int i = 0;i<=20;i++){
            int mul = a*i;
            System.out.println(a+" X "+i+" = "+mul);
        }
    }
}