Python Program to Check the Year is Leap or Not
year=int(input("Enter year:"))
if year%4==0:
print(f"{year} is leap year")
else:
print(f"The {year} is not leap year")
Output:
Enter year:2008
2008 is leap year
year=int(input("Enter year:"))
if year%4==0:
print(f"{year} is leap year")
else:
print(f"The {year} is not leap year")
Output:
Enter year:2008
2008 is leap year
Copyright © 2020 मधूषाब्लॉग्स All Right Reseved
0 टिप्पण्या
कृपया तुमच्या प्रियजनांना लेख शेअर करा आणि तुमचा अभिप्राय जरूर नोंदवा. 🙏 🙏