Untitled

Anonymous
c_cpp
03/13/2024 5:00 PM
352 B
11
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