A string variable named amount contains a string that has zero or more commas. Write the C++

Question:

A string variable named amount contains a string that has zero or more commas. Write the C++ code to count the number of commas in the string. Assign the result to an int variable named numCommas.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: