see this code with the queastion
#include <iostream>
using namespace std;
int main()
{
char str[30];
cout << "enter a word: " << endl;
cin >> str;
// if the user input: malaysia
// so the output will be 3 because there are three charchter of 'a'
return 0;
}
how can i do it? :)