PRF192_-_PE_-_SU_2024_-_s_2_2164.webp
Ogi91

PRF192_-_PE_-_SU_2024_-_s_2_2164.webp

  • Media owner Ogi91
  • Ngày thêm
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: 2
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
Close
+ 100%
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_SU_2024_-_s_2_2164.webp
File size
160.1 KB
Dimensions
1920px x 991px

Share this media

Back
Bên trên Bottom