PRF192_-_PE_-_FA_2024_-_Block_1_2864.webp
Văn Nam2

PRF192_-_PE_-_FA_2024_-_Block_1_2864.webp

Question 5:
(2 marks)
The given file Q4.c already contains statements to input string of s1 and s2. The given file Q4.c already contains statements to input strings of s1 and s2. You should write statements to check whether string s1 is a substring of S2. If yes, return the index of the first occurrence, otherwise return the message.
Notes:
- You can create new function(s) if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
Input:
for She has lived here for twenty years
Output:20
Zoom
+ 100%
Close
Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_FA_2024_-_Block_1_2864.webp
File size
146.4 KB
Dimensions
1920px x 991px

Share this media

Back
Bên trên Bottom