-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassignment.py
61 lines (47 loc) · 1.38 KB
/
assignment.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
53
54
55
56
57
58
59
60
61
# finding the largest number
# a = input("enter the aze of a = ")
# b = input("enter the aze of b = ")
# c = input("enter the aze of c = ")
# if(a>b and a>c) :
# print("the largest number is a")
# elif(b>a and b>c):
# print("the largest number is b")
# elif(c>a and c>b):
# print("the largest number is c")
# elif(a==b and b==c):
# print("all number are equal")
#n finding prime number
prime = input()
if(prime in range(2)):
add = (prime[0])+(prime[1])
prime=add
if(prime%3==0 or prime[len(prime)-1] not in range (0,2,4,6,8 )) :
print("enter numbered is not a prime number")
else :
print("entered number is prime number")
# mathamatical operator
# a = int(input("entere tyhe number"))
# if(a>0):
# print("enter number is positive" )
# else:
# print("enter number is negative ")
# score
# physics = int(input("enter the marks"))
# chemistry = int(input("enter the marks"))
# bio = int(input("enter the marks"))
# maths = int(input("enter the marks"))
# score = (physics +chemistry+maths +bio)*100/4
# if(score >= 60):
# print("you are pass")
# else:
# print ("you are fail")
#calculator
# a = int(input("enter the number"))
# b = int(input("enter the another number"))
# switch = {
# '+': print(a+b);
# '-': print(a-b);
# '*': print(a*b);
# '/': print(a/b);
# '%':print(a%b) ;
# }