Enter: n = 6; elements: 10, 9, 8, 5, 7, 3
6
10 9 8 5 7 3
OUTPUT:
9
7
5
3
10
8
Press any key to continue
Question 6:
(1 mark, file to be edited: Q6.c)
The program allows users to enter up to 100 characters from the keyboard.
Find and print the sum of the values of numeric characters (0-9) that are even numbers.
Below is an example:
Enter s = "He3llo2 everyone4!"
He311o2 everyone4!
OUTPUT:
6
Press any key to continue
Zoom
+ 100%
Close