Write a program that asks the user to enter a int number than is less than99999and greater than ZERO and does the following: display the number of digits in the number display a message indicating...



Write a program that asks the user to enter a int number than is
less than99999and greater than ZERO
and does the following:






  1. display the number of digits in the number


  2. display a message indicating if the number is even or odd



The code should be the following conditions:






  • Do not hard code the number, the user should be able to input his own number


  • Use conditional statements : if, else if. Do not use loops





  • The program must have a limit of 5 digits and should be able to tell the user that he has entered more than 5 digits
    . Do not use string processing to get the length of the number as a string!




Jun 16, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here