Viết chương trình Python nhập vào năm dương lịch (ví dụ 2022) và cho biết năm đó là năm nhuận hay không?
(Năm n là năm nhuận nếu: n chia hết cho 400 hoặc n chia hết cho 4 đồng thời không chia hết cho 100)
Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
n=float(input())
if(n<5):
print(n*20000)
else:
print(n*18000)
What is Mr Hung s' address?
Who does your brother live with?
My house is small but modern
Her address is 20 Ngoc Ha street, Ba Dinh District
She lives in a small village in the mountains
They live on the tenth floor of Ha Noi Tower
What is her hometown like?
It is a small and quiet village
I like hometown because it is beautiful and quiet
Do Trung s' parents live in a big city ?
n = int(input("nhập năm dương lịch: "))
if n%4 == 100 or (n%4 == 0 and n%100 == 0):
print("năm đó là năm nhuận")
else:
print("năm đó không phải là năm nhuận")