Enter an integer from the keyboard in the range 1 - 999. Display a string description as follows:
"even single-digit number" - if the number is even and has one digit,
"odd single-digit number" - if the number is odd and has one digit,
"even two-digit number" - if the number is even and has two digi
Describing numbers
- 3
Locked
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
BobbyGWilly
24 January, 01:59
Fail on the range check but i clearly have a range check.
0
BobbyGWilly
24 January, 02:08
Ended up having to nest all other if's into the range check if.
Removed Spoilers...of course ;) +3
Ali_Alshehri
24 April, 20:34
thanks bro
0
Joey M Teacher at McDonogh School
27 November 2021, 21:52
Used a bunch of if//else ifs.
0