It's raining frogs and fleas. Write a function that tells you if the number of frogs in a sentence is the same as the number of fleas.

icon
Related questions
Question

Please help in C++

It's raining frogs and fleas. Write a function that tells you if the number of frogs in a sentence is the
same as the number of fleas.
main.cpp
1 #include <string>
2 #include <cctype>
3 using namespace std;
4
bool fleasNFrogs(const string& s)
6.
5
{
bool result{false};
// Add your loop here
7
8.
9.
10
return result;
11
CodeCheck
Reset
Transcribed Image Text:It's raining frogs and fleas. Write a function that tells you if the number of frogs in a sentence is the same as the number of fleas. main.cpp 1 #include <string> 2 #include <cctype> 3 using namespace std; 4 bool fleasNFrogs(const string& s) 6. 5 { bool result{false}; // Add your loop here 7 8. 9. 10 return result; 11 CodeCheck Reset
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer