Write a c++ program to print and count the no. Of characters repeated in an string separately | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Write a c++ program to print and count the no. Of characters repeated in an string separately

such as I input classmate then it should print s=2 a=2 please help me

24th Oct 2017, 4:40 PM
Anurag Pathak
Anurag Pathak - avatar
1 Answer
+ 1
Take a array index from 0 to 25 a=0 b=1 and so on now if a[i]>1 then print it an also print value of it(you can do it by input_value-'a')
20th Sep 2019, 6:38 PM
YUGRAJ