repl.it
@potatosmurfer/

Math homework

Python

No description

fork
loading
Files
  • main.py
main.py
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
import time
import replit

x = 1
y = 1
nummer = []
script = True
maxe = 100




while script == True:
  time.sleep(0.005)
  u = x + y
  if 3 * u == x * y - 3:
    print(x, y)
    nummer.append(x)
    nummer.append(y)
    y = y + 1
    if y == maxe:
      y = 1
      x = x + 1
      if x == maxe:
        print(nummer)
        break
  if 3 * u != x * y - 3:
    print(x, y)
    y = y + 1
    if y == maxe:
      y = 1
      x = x + 1
      if x == maxe:
        print(nummer)
        break
  
?