#include <iostream>
int main(void)
{
std::string s = "c c++ c# java python";
int frequency = 0;
char ch = 'c';
for (int i = 0; s[i]; i++)
{
if (ch == s[i])
frequency++;
}
std::cout << "Frequency of the characters '" << ch << "' is : " << frequency << std::endl;
return(0);
}
/*
run:
Frequency of the characters 'c' is : 3
*/