Chapter Overview
Learn what we will be covering in this chapter.
“History is about loops and continuums.”
In this chapter, we will start with a few more problems and learn to solve them using loops and functions. We’ll especially learn to make our solutions more efficient and less complex. We will cover verifying mathematical conjectures, computing square roots, primes, and Fibonacci numbers, GCD, LCM, and reversing numbers, and many more.
Furthermore, we’ll also cover a very important yet fascinating topic of nested loops in much detail. We’ll learn to print a number of different shapes, starting from a simple rectangle to a complex Christmas tree, star, crown, and many more using nested loops!
Our main focus in this chapter will be on learning strategies for problem solving using the power of functions and loops.
So let’s get started!