desislava_topuzakova

02. Multiplication Table

Oct 16th, 2021
631
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class MultiplicationTable_02 {
  2.     public static void main(String[] args) {
  3.         //първия множител от 1 до 10
  4.         for (int first = 1; first <= 10; first++) {
  5.             //втори множител от 1 до 10
  6.             for (int second = 1; second <= 10; second++) {
  7.                 System.out.printf("%d * %d = %d%n", first, second, first * second);
  8.             }
  9.         }
  10.     }
  11. }
RAW Paste Data