integer variables named x and y. You should write statements to count all prime numbers in an array that are greater than or equal to x and less than or equal to y (the prime numbers start from 2).
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
Input:
Enter the number of elements: 5
Array: 2 4 5 9 11
Enter x = 3
Enter y = 15
After processing: count = 2 (the prime numbers are: 5, 11)
Output for marking:
OUTPUT:
2
Question 4:
(3 marks)
The given file Q4.c already contains statements to input the lowercase string named s (the string s does not include numeric characters). You should write statements to convert the characters at even indices (indices start with 0) to uppercase.
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
Input:
Zoom
+ 100%
Close