im quite confused with loops and switch.. will you please help me:)
i have 3 problems..:)
1.Write a program that will ask for a long number and count how many digits are there in the number.
ex. Enter num: 10854
Output: 5
2.Write a program that will ask for a long number and count how many digits in the number are even and how many are odd.
ex. Enter num: 80572
Output: 3 digits are even
2 digits are odd
3.Write a program that asks for an input integer and displays the digits in reverse.
ex. Enter number: 3562 ex. Enter number: 10240
Output: 2653 Output: 04201