Advertisement
CoineTre

JF-Lab10. Multiplication Table

Jan 14th, 2021
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class MultiplicationTable {
  4.     public static void main(String[] args) {
  5.         int input= new Scanner(System.in).nextInt();
  6.         for (int i = 1; i <= 10; i++) {
  7.             System.out.printf("%d X %d = %d%n",input,i,input*i);
  8.         }
  9.     }
  10. }
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement