--Originally published at Valeria CT
I believe that this is the practice that I’ve struggled with the most and the longest. I tried doing what was asked through conditionals, recursion, functions, “while” loops, etc. I read How to think like a computer scientist again and again and did a lot of reasearch on the Internet. Finally, Damian helped me by explaining to me how a “for” loop works and I was able to write my code. I had a few syntax errors at first, but that didn’t take as long to correct.
Here are the resources that I used:
- How To Think Like a Computer Scientist
- https://www.tutorialspoint.com/cplusplus/cpp_for_loop.htm
- Damian’s blog
-Valeria