Untitled
unknown
c_cpp
2 years ago
263 B
5
Indexable
#include <iostream>
#include <string>
void count(std::string word) {
for (auto i : word) {
std::cout << i << " : " << std::count(word.begin(), word.end(), i) << '\n';
}
}
int main() {
std::string word;
std::cin >> word;
count(word);
};
Editor is loading...
Leave a Comment