Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Aluno: Lucas David Canellas
- //Matricula: 218.083.120
- //5. Construa a tabela de multiplicação de números de 1 a 10 (ex.: 1 x 1 = 1, 1 x 2 = 2, etc.).
- public class TabelaMultiplicacao {
- public static void main(String[] args) {
- for (int i = 1; i < 10; i++) {
- for (int j = 1; j <= 10; j++) {
- System.out.println(i + " x " + j + " = " + i * j);
- }
- System.out.println();// melhorar a visualização da saida
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement