Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Exercise #1: count even digits Given an integer (n), write a program to count and display the number of its even digits. The input value
Exercise #1: count even digits Given an integer (n), write a program to count and display the number of its even digits. The input value can vary in its number of digits. See examples below, Sample Input / Output Enter an integer: 125 25 has 1 even digits. rocess returned 0 (0x0 execution time 5.653 s ress any key to continue. Enter an integer: 98064513 98064513 has 4 even digits. rocess returned 0 (0x0) execution time 11.151 s ress any key to continue. 1/2 Exercise #2: Upper/Lower case characters Given a sequence of characters ending with"#", write a program to convert every upper-case character to lower-case and each lower-case character to upper-case. Sample Input/ Output nter a sequence of characters ending with PPLEpie rocess returned 0 (0x0) execution time6.995s ress any key to continue. Apple PIE
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started