ya_zay4eg

level03.lesson06.task02

Nov 12th, 2014
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. package com.javarush.test.level03.lesson06.task02;
  2.  
  3. /* Таблица умножения
  4. Выведи на экран таблицу умножения 10 на 10 в следующем виде:
  5. 1 2 3 …
  6. 2 4 6 …
  7. 3 6 9 …
  8. …
  9. */
  10.  
  11. public class Solution
  12. {
  13.  
  14.     public static void main(String[] args)
  15.     {
  16.         int i = 0;
  17.         int s=0;
  18.         for (s=1;s<11;s++)
  19.         {
  20.             for (i =1; i < 11; i++)
  21.             {
  22.                 System.out.print(i*s);
  23.                 System.out.print(" ");
  24.             }
  25.             System.out.println("");
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment