Jump to content

[PYTHON] Check Leap Year


Tupi
 Share

Recommended Posts

Descriere: Algoritmul verifica daca anul ales este unul bisect sau nu

Poze / Video: 

finQYff.png

gxfbZnr.png

Link de descărcare: Este sursa mai jos

Sursa (opțional): 

def CheckYear(year):
    if((year % 400 == 0) or
       (year % 400 != 0) and
       (year % 4 == 0)):
      print("Anul ales ESTE unul bisect");
    else:
        print("Anul ales NU ESTE unul bisect");
        
year = int(input("Introdu anul ales pentru verificare: "))
CheckYear(year)

Alte precizări: -

Link to comment
Share on other sites

  • Tupi locked this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.