-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlec2.py
More file actions
68 lines (47 loc) · 1.22 KB
/
Copy pathlec2.py
File metadata and controls
68 lines (47 loc) · 1.22 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
# width=float(input("enter width: "))
# print(width)
# length=float(input("enter length : "))
# print(length)
# area=length*width
# print("area of a rec",area)
# radius=float(input("enter radius : "))
# print(radius)
# circumfrence=2*3.14*radius
# print("circum of circle : ",circumfrence)
# age=int(input("Enter age : "))
# print(age)
# if age>=18:
# print("eligible for vote")
# else:
# print("not eligible for vote")
# num=int(input("enter num : "))
# if num>0:
# print("num is positive")
# elif num<0:
# print("num is negative")
# else:
# print("num is zero")
# num=int(input("enter num : "))
# if num%2==0:
# print("num is even")
# else:
# print("num is odd")
# year=int(input("enter num : "))
# if (year%4==0 and year%100!=0) or(year%400==0):
# print("leap year")
# else:
# print("not leap year")
# num=int(input("enter num : "))
# if num%3==0 and num%5==0:
# print("num is divisible by both")
# else:
# print("num is not divisible by both")
# month=int(input("enter month : "))
# if month>=3 and month<=5:
# print("spring")
# elif month>=6 and month<=8:
# print("summer")
# elif month>=9 and month<=11:
# print("autumn")
# else:
# print("winter")