-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloops.py
More file actions
45 lines (32 loc) · 759 Bytes
/
Copy pathloops.py
File metadata and controls
45 lines (32 loc) · 759 Bytes
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
# While loop
# count = 1; #itrater
# while (count <=5):
# print("hellow world",count)
# count +=1
# print("after count",count)
# print reverse from 5 to 1
# i = 5
# while(i>=1):
# print(i)
# i -=1;
# multiplication of any number
# n = int(input("enter num :"))
# i = 1;
# while(i<=10):
# print(n*i)
# i += 1
# Break and continue
# i = 1
# while(i <= 10):
# if(i % 6 == 0):
# break
# print(i)
# i += 1
# print("outside loop now ....")
# print the odd numbers
i = 0
while(i < 10):
i += 1
if(i % 2 == 0):
continue
print(i)