Advertisement
CR7CR7

11.MultiplicatinTable2

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