Zoom
4 of 4
Paper No: 3
Question 6:
(1 mark, file to be edited: Q6.c)
The program allows the user to enter the character string "s" from the keyboard.
Enter the character 'c' to be converted in the string entered above.
If the character 'c' exists in the string "s" then convert it to uppercase and print the string to the screen
after conversion. If not found print: "Character 'c' not found".
Below is an example of how the program will run:
s="hello everybody"; c = 'e'
hello everybody
s="hello everybody"; c='g'
hello everybody
g
OUTPUT:
hello Everybody
Press any key to continue . .
OUTPUT:
Character 'g' not found
Press any key to continue
- FUO
+ 100%
Close