1) 2~100κΉμ§μ μμ ꡬνκΈ°
2 3 5 7 11 13 17 19 23 29
31 37 41 43 47 53 59 61 67 71
73 79 83 89 97
PS C:\Users\user\Desktop\chosuhyeon\school class\python\GOGODAN>
2) 2-9λ¨κΉμ§μ κ΅¬κ΅¬λ¨ λ§λ€κΈ°
-> vscodeμ μ΄λλ‘ λλ₯΄κ³ μ€ννλ©΄ (=F5)
=>
------[2λ¨]------
2 x 1 = 2
2 x 2 = 4
2 x 3 = 6
2 x 4 = 8
2 x 5 = 10
2 x 6 = 12
2 x 7 = 14
2 x 8 = 16
2 x 9 = 18
------[3λ¨]------
3 x 1 = 3
3 x 2 = 6
3 x 3 = 9
3 x 4 = 12
3 x 5 = 15
3 x 6 = 18
3 x 7 = 21
3 x 8 = 24
3 x 9 = 27
------[4λ¨]------
4 x 1 = 4
4 x 2 = 8
4 x 3 = 12
4 x 4 = 16
4 x 5 = 20
4 x 6 = 24
4 x 7 = 28
4 x 8 = 32
4 x 9 = 36
------[5λ¨]------
5 x 1 = 5
5 x 2 = 10
5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
------[6λ¨]------
6 x 1 = 6
6 x 2 = 12
6 x 3 = 18
6 x 4 = 24
6 x 5 = 30
6 x 6 = 36
6 x 7 = 42
6 x 8 = 48
6 x 9 = 54
------[7λ¨]------
7 x 1 = 7
7 x 2 = 14
7 x 3 = 21
7 x 4 = 28
7 x 5 = 35
7 x 6 = 42
7 x 7 = 49
7 x 8 = 56
7 x 9 = 63
------[8λ¨]------
8 x 1 = 8
8 x 2 = 16
8 x 3 = 24
8 x 4 = 32
8 x 5 = 40
8 x 6 = 48
8 x 7 = 56
8 x 8 = 64
8 x 9 = 72
------[9λ¨]------
9 x 1 = 9
9 x 2 = 18
9 x 3 = 27
9 x 4 = 36
9 x 5 = 45
9 x 6 = 54
9 x 7 = 63
9 x 8 = 72
9 x 9 = 81
* νμ€μ© μΆλ ₯νκ³ μΆμΌλ©΄ for y in range(1,10):μ΄ μμ F9 λλ₯Έλ€μμ μ€ν(F5)ν ν, F10μ κ³μν΄μ λλ¬μ£Όλ©΄
λΉ¨κ° μ μ΄ μκΈ°λ©΄μ 4~5λ²μ μλ€ κ°λ€νλ©΄μ
2 x 1 = 2
2 x 2 = 4
2 x 3 = 6
μ£Όλ₯΄λ₯΅ λμ΅λλ€~~~
νμ΄μ¬μ λν κΈ°λ³Έ μ§μλ μμ΄ λ°λ‘ μ½λ©μ μ€ννλ €κ³ νλκΉ μ΄ν΄νλ€κ³ μ΄λ €μμ΄ λ§μλλ° λ¬΄μμ νλ² μλν΄λ³΄λ κ²λ μ¬λ―Έλ μμλ€μ. μΈμ κ° κΈ°μ΄μ μΈ μ§μλ€μ λ°°μμ μ£Όμ λ₯Ό λμ§λ©΄ λ°λ‘ μ½λ© ν΄λ³΄λ μ€λ ₯ κ°μ§κΈΈ λ°λΌλ©΄μ μ€λμ μλ :)
'python' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
μ¬κ·ν¨μλ‘ λΆλΆμ§ν© λ§λ€κΈ°... (0) | 2023.08.14 |
---|---|
Python 3οΈβ£ ν¨μ (0) | 2023.07.16 |
Python 2οΈβ£ μ μ΄ κ΅¬μ‘° (0) | 2023.07.16 |
Python μμνκΈ° πΆββοΈπΆββοΈ (4) | 2023.07.16 |
Python tkinter λ€μ΄κ°κΈ°(νμ΄μ§ λ§λ€κΈ°) (2) | 2023.03.14 |