Design Algorithm Will Prompt And Accept Four Digit Representation Year Example 2003 Your Pro

Design an algorithm that will prompt for and accept a four-digit representation of the year (for example, 2003). Your program is to determine if the year provided is a leap year and print a message to this effect on the screen. Also print a message on the screen if the value provided is not exactly four numeric digits. Continue progressing until a sentinel of 0000 is entered.

Answer

Study Cred Tutor

4.6 (24k+)
4.6/5

Purchase the answer to view it

×

Hello!

Click one of our contacts below to chat on WhatsApp

× How can I help you?