anthonyzubi
New member
this is hard and i'm new at it.? First, prompt the user for the day of the month on which she was born (a number from 1 to 31).
Second, calculate the user's lucky day, using this formula:
If the birth day has one digit, the lucky day is that digit times 3.
If the birth day has two digits and they are equal, the lucky day is the product of the two digits.
If the birth day has two digits and they are not equal, the lucky day is the sum of the two digits.
Third, print out a message telling the user which is her lucky day
Second, calculate the user's lucky day, using this formula:
If the birth day has one digit, the lucky day is that digit times 3.
If the birth day has two digits and they are equal, the lucky day is the product of the two digits.
If the birth day has two digits and they are not equal, the lucky day is the sum of the two digits.
Third, print out a message telling the user which is her lucky day