Computer practical
Computer practical
year=2000 #please change the value if you want to change the number that is
calculated
if(year % 4 == 0 and year % 100 != 0 or year % 400 == 0):
print("The year is a leap year!")
else:
print("The year isn't a leap year!")
number = 56789 #please change the value if you want to change the number that is
calculated
flag = False
if number>1:
for i in range(2, number):
if (number % i) == 0:
flag = True
break
if flag:
print(number, "is not a prime number")
else:
print(number, "is a prime number")
sum = a + b
print("sum:", sum)
output = b//a
print (output)
if a==b:
print("The numbers are equal")
else:
print("The numbers are not equal")