0% found this document useful (0 votes)
6 views1 page

... T/source/repos/magic Dates/Magic Dates/Magic - Dates - Py 1: Int Int Int

Uploaded by

tchumakov2010
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

... T/source/repos/magic Dates/Magic Dates/Magic - Dates - Py 1: Int Int Int

Uploaded by

tchumakov2010
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

...t\source\repos\Magic Dates\Magic Dates\Magic_Dates.

py 1
# Attached: HW_3c
# ===================================================
# Program: Magic Dates
# ===================================================
# Programer: Mathew Rodriguez
# Class CS CIS-111
# ===================================================

month = int(input("Enter an month in numeric form: "))


day = int(input("Enter the day of the month: "))
year = int(input("Enter the year in a two-digit format: "))

if ((month*day)==year):
print("The date is ",month,"/",day,"/",year)
print("The date is MAGIC ",month," * ",day," = ",year)

else:
print("The date is ",month,"/",day,"/20",year)
print("The date is not magic :(")

# Enter an month in numeric form: 2


# Enter the day of the month: 6
# Enter the year in a two-digit format: 12
# The date is 2 / 6 / 12
# The date is MAGIC 2 * 6 = 12
# Press any key to continue . . .

You might also like