1. Engineering
  2. Computer Science
  3. 23 write a program that reads a fivedigit number and...

Question: 23 write a program that reads a fivedigit number and...

Question details

2-3. Write a program that reads a five-digit number and extracts the ten-thousands, thousands, hundreds, tens, and ones-digit. Additionally, check if the number is even or odd. Hint: use the modulus operator. For example: Enter a five digit number: 65535 Ten thousands 6 Thousands Hundreds Tens Ones The number is odd.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution