fork download
  1. '''
  2. #zad 1
  3. i = 1
  4. while i <= 5:
  5. print(i)
  6. i = i+1
  7. '''
  8. '''
  9. #zad 3 to jest zadanie 2 ale jest w 3 linijce wiec latwiej tak sie polapac
  10. i = 2
  11. while i <=10:
  12. if i%2 == 0:
  13. print(i)
  14. i = i + 2
  15. '''
  16. '''
  17. #zad 4
  18. i = 10
  19. while i > 0:
  20. print(i)
  21. i = i - 1
  22. '''
  23. '''
  24. #zad 5
  25. i = 1
  26. while i < 100:
  27. print(i)
  28. i = i + 5
  29. '''
  30. '''
  31. #zad 6
  32. i = 1
  33. suma = 0
  34. while i <= 10:
  35. suma = suma + i
  36. print(suma)
  37. i = i+1
  38. '''
  39. '''
  40. #zad 7
  41.  
  42. for in range (10) :
  43. print('a')
  44. '''
  45.  
  46.  
  47. '''
  48. '''
  49. '''
  50. # zad 8
  51. i = 1
  52. while i <= 30:
  53. if i%3 == 0:
  54. print(i)
  55. i = i+ 1
  56. '''
  57. '''
  58. i = 100
  59. while i < 300:
  60. if i%7 == 0:
  61. print(i)
  62. '''
  63. '''
  64. #zad 11
  65.  
  66. i = 1
  67. while i <= 5:
  68. print(i)
  69. i = i+1
  70. '''
  71. '''
  72. #zad 12
  73. i = 2
  74. while i <=10:
  75. if i%2 == 0:
  76. print(i)
  77. i = i + 2
  78. '''
  79. '''
  80. #zad 13
  81. i = 1
  82. suma = 0
  83. while i <= 10:
  84. suma = suma + i
  85. print(suma)
  86. i = i+1
  87. '''
  88. '''
  89. #zad 16
  90. i = 10
  91. while i > 0:
  92. print(i)
  93. i = i - 1
  94. '''
  95. '''
  96. #zad 17
  97. i = 1
  98. while i <= 30:
  99. if i%3 == 0:
  100. print(i)
  101. i = i+ 1
  102. '''
  103. '''
  104. #zad 18
  105. i = 1
  106. while i <= 15:
  107. if i%2== 1:
  108. print(i)
  109. i = i +1
  110. '''
  111. '''
  112. # zad 19
  113.  
  114. i = 1
  115. while i <= 20:
  116. if i%4 == 0:
  117. print(i)
  118. i = i +1
  119. '''
Success #stdin #stdout 0.03s 9652KB
stdin
Standard input is empty
stdout
Standard output is empty