Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MultiplicationTable_02 {
- public static void main(String[] args) {
- //първи множител -> 1 до 10
- //втори множител -> 1 до 10
- //за всяка стойност на 1 множител -> повтаря се: всяка стойност на втория множител
- for (int first = 1; first <= 10; first++) {
- for (int second = 1; second <= 10; second++) {
- int product = first * second;
- System.out.println(first + " * " + second + " = " + product);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment