Q1_20251108110046.webp
Akari86

Q1_20251108110046.webp

  • Media owner Akari86
  • Ngày thêm
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

Thông tin

Category
PRF192
Thêm bởi
Akari86
Ngày thêm
Lượt xem
2,264
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom