PRF192_-_PE_-_SU_2024_-_s_6_2163.webp
T

PRF192_-_PE_-_SU_2024_-_s_6_2163.webp

Question 9:
(1 mark, file to be edited: Q9.c)
The program allows the user to enter 3 character strings: s1, s2 and s3 from the keyboard.
6 of 6
Paper No: 6
Search in string s1, if it contains characters similar to s2 then replace them with s3.
Print out the character string s1 after replacing the new character strings.
Below is an example:
Enter: s1 = "Chao mung ban den voi ngon ngu lap trinh C"; s2 = "ng"; s3 = "AB"
Chao mung ban den voi ngon ngu lap trinh C ng AB
OUTPUT:
Chao muAB ban den voi ABon ABu lap trinh C Press any key to continue
Question 10:
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_SU_2024_-_s_6_2163.webp
File size
158.5 KB
Dimensions
1920px x 1000px

Share this media

Back
Bên trên Bottom