PRF192_-_PE_-_01_-_SP_2024_1512.webp
T

PRF192_-_PE_-_01_-_SP_2024_1512.webp

  • Media owner Todo89
  • Ngày thêm
Question 4:
(3 marks)
The given file Q4.c already contains statements to input a string named str and a character named ch.
You write the statements to count the number of occurrences of the character ch in the string str (notcase-sensitive).
Notes:
4 of 4
Paper No: 1
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
-Input:
Please enter a string: 12A3aaaABC
Please enter a character: a
After processing: result = 5
Output for marking:
OUTPUT:
5
Zoom
+ 100%
Close

Chưa có bình luận nào.

Thông tin

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

Image metadata

Filename
PRF192_-_PE_-_01_-_SP_2024_1512.webp
File size
102.1 KB
Dimensions
1366px x 744px

Share this media

Back
Bên trên Bottom