Quiz 10

--Originally published at Victor´s Spot

The quiz number 10 was pretty easy and funny because it consisted on

“Write a program (this part in main) which asks the user for a sentence (just any characters and words). Store that input in a string variable.
(note this will read everything up to the “enter” key).

Write a function called countChars that receives two parameters, the string that the user typed and a char that specifies the character we are looking for. It returns how many of that character is in the string” (Bauer, 2017)

First I tought I wouldn´t make it so I get stressed but then I search for some information and I did understand all I had to do so I started, I think I´m learning a lot in this class and I´m improving myself more than I could imagine it.

There is no goal you can´t achieve

if you are determinate to believe

 

You can download my code in https://gist.github.com/victorcmadrigal/42c03203655d03bdac69801a792fe198

Have a nice day!Quiz10