- Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathP74.java
47 lines (28 loc) · 670 Bytes
/
P74.java
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* P74 : جدول ضرب اعداد
*
* @author Gholamali Nejad Hajali Irani
* @version 1.0
* @since 2021/01/29
* @Team gClassAcademy
* @Website youtube.com/gClassAcademy
*
*/
importjava.util.Scanner;
publicclassP74
{
publicstaticvoidmain(String[] args)
{
Scannerinput=newScanner (System.in);
System.out.println();
for (intx=1;x<=10;x++)
{
for (inty=1;y<=10;y++)
if (x*y>=1 && x*y<=9)
System.out.print(" " + x*y + " ");
else
System.out.print(x*y + " ");
System.out.println("");
}
}// end of main
}// end of class