0

how to display sum of a particular character

how do i display the number of times a particular character appears in a set of string values?(e.g i write "retribution" and i choose r, it should count 2

14th Sep 2021, 1:31 AM
Bobby Dike
Bobby Dike - avatar
8 Réponses
+ 4
U can also use switch case to did so https://code.sololearn.com/cRlcHHTQX8Yr/?ref=app
14th Sep 2021, 2:49 AM
Pariket Thakur
Pariket Thakur - avatar
+ 2
https://code.sololearn.com/cjjSI51WpRE8/?ref=app
14th Sep 2021, 7:06 PM
Parith (Faree)
Parith (Faree) - avatar
+ 2
15th Sep 2021, 9:19 AM
Parith (Faree)
Parith (Faree) - avatar
0
how do i use it
14th Sep 2021, 1:56 AM
Bobby Dike
Bobby Dike - avatar
0
how do i do that
14th Sep 2021, 2:18 AM
Bobby Dike
Bobby Dike - avatar