Question: Question 3 Write a program that prompt the user for his or her birthdate in the form of a 4 digit number. If the person

 Question 3 Write a program that prompt the user for his

Question 3 Write a program that prompt the user for his or her birthdate in the form of a 4 digit number. If the person birthdate is 28 of February, then she or he must enter as 2802 (a single 4-digit integer number). Sum the digits and display the message " Your lucky number is an even number" or "Your lucky number is an odd number" based on the sum. Use the conditional operator to check if it is an even or odd number

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!