Advertisement
lucas-canellas

exercicios-lista1-05

Jan 18th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.44 KB | None | 0 0
  1. //Aluno: Lucas David Canellas
  2. //Matricula: 218.083.120
  3.  
  4. //5. Construa a tabela de multiplicação de números de 1 a 10 (ex.: 1 x 1 = 1, 1 x 2 = 2, etc.).
  5.  
  6. public class TabelaMultiplicacao {
  7.  
  8.     public static void main(String[] args) {
  9.  
  10.         for (int i = 1; i < 10; i++) {
  11.             for (int j = 1; j <= 10; j++) {
  12.                 System.out.println(i + " x " + j + " = " + i * j);
  13.             }
  14.             System.out.println();// melhorar a visualização da saida
  15.         }
  16.  
  17.     }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement