-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathvideo13.py
53 lines (40 loc) · 985 Bytes
/
video13.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
"""Video13.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1_fLUTgBVfhOey-49415sOcicR3UTApxD
"""
if (1):
print("---if---")
while (1):
print("---while---")
number = 1
while(number <= 10):
print(number, end = " ")
number = number + 1
num1 = int(input("adad 1 ra vared kon :"))
num2 = int(input("adad 2 ra vared kon :"))
while(num1<=num2):
print(num1, end =" ")
num1 = num1 + 1
# zooj beine 2 adad
num1 = int(input("adad 1 ra vared kon :"))
num2 = int(input("adad 2 ra vared kon :"))
if num1 % 2 == 1:
num1 = num1+1
while(num1<=num2):
print(num1, end =" ")
num1 = num1 + 2
number = 1
while(number <= 10):
print(number, end = " ")
number = number + 1
if number==5:
continue
num1 = int(input("adad 1 ra vared kon :"))
num2 = int(input("adad 2 ra vared kon :"))
while(num1<=num2):
print(num1, end =" ")
num1 = num1 + 1
else:
print("tamam shod....")