We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C
- Arrays and Strings
- Digit Frequency
- Discussions
Digit Frequency
Digit Frequency
Sort by
recency
|
1169 Discussions
|
Please Login in order to post a comment
My solution
An Easy approach
For Beginners
char s[1000]; int count0=0, count1=0, count2=0, count3=0, count4=0, count5=0, count6=0, count7=0, count8=0, count9=0; scanf("%s", s); for (int i=0; i