-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabuada.java
More file actions
26 lines (19 loc) · 760 Bytes
/
Copy pathtabuada.java
File metadata and controls
26 lines (19 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import java.util.Scanner;
public class tabuada {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Dê um valor inteiro a N entre 1 e 10: ");
int n = input.nextInt();
System.out.println("\nTabuada do " + n + "\n");
System.out.println(n + " x 1 = "+(n*1));
System.out.println(n + " x 2 = " +(n*2));
System.out.println(n + " x 3 = " +(n*3));
System.out.println(n + " x 4 = "+(n*4));
System.out.println(n + " x 5 = "+(n*5));
System.out.println(n + " x 6 = "+(n*6));
System.out.println(n + " x 7 = "+(n*7));
System.out.println(n + " x 8 = "+(n*8));
System.out.println(n + " x 9 = "+(n*9));
System.out.println(n + " x 10 = "+(n*10));
}
}