fork download
  1. def main():
  2. upper_bound = 100
  3. square = 1
  4. odd = 1
  5. while square <= upper_bound:
  6. print(square)
  7. odd = odd + 2
  8. square = square + odd
  9.  
  10.  
  11. main()
Success #stdin #stdout 0.01s 118656KB
stdin
Standard input is empty
stdout
1
4
9
16
25
36
49
64
81
100