The date June 10, 1960, is special because when it is written in the following format, the month times the day equals the year: 6/10/60 Design a program that asks the user to enter a month (in numeric form), a day, and a two-digit year. The program should then determine whether the month times the day equals the year. If so, it should display a message saying the date is magic. Otherwise, it should display a message saying the date is not magic.

Respuesta :

Answer:

Explanation:

Let's do it in Python, we can start by prompting user for the inputs

month = int(input("Enter a month (in numeric): "))

day = int(input("Enter a day (in numeric): "))

year = int(input("Enter a 2-digit year: "))

# now check if the month times day equals the year:

if month * day == year:

    print("The date is magic")

else:

    print("The date is not magic")

In this exercise we have to use the knowledge of computational language in Python, so we have that code is:

It can be found in the attached image.

So, to make it easier, the code in Python can be found below:

month = int(input("Enter a month (in numeric): "))

day = int(input("Enter a day (in numeric): "))

year = int(input("Enter a 2-digit year: "))

    if month * day == year:

   print("The date is magic")

else:

   print("The date is not magic")

See more about python at brainly.com/question/26104476

Ver imagen lhmarianateixeira