desislava_topuzakova

10. Multiplication Table

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