Advertisement
veronikaaa86

11. Multiplication Table 2.0

Sep 14th, 2022
856
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.45 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class LiveExample {
  4.     public static void main (String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.  
  7.         int number = Integer.parseInt(scanner.nextLine());
  8.         int times = Integer.parseInt(scanner.nextLine());
  9.         do {
  10.             System.out.printf("%d X %d = %d%n",
  11.                     number, times, number * times);
  12.             times++;
  13.         } while (times <= 10);
  14.  
  15.  
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement