Task of Challenge #07/54 Calculate the sum of odd numbers greater than 9 and less than 30 a for-loop . Solution Explanation To accomplish our task, we should remember challenge #02 because back then, the task was to print out every odd number below 99. That means we...

Task of Challenge #06/54 Calculate 9! a for-loop . Solution Explanation To create the factorial of 9 we make almost the same as in challenge #05 but with a different loop body code block. Last time we used this statement to gather the accumulated sum sum+=i. Knowing a...

Task of Challenge #05/54 Calculate the sum of numbers from 1 to 24 with a for-loop . Solution Explanation For diversity, another challenge, but a simpler one! But that doesn’t mean you can switch off your brain ðŸ˜‰ We can’t just put the accumulated value of...

Task of Challenge #04/54 Print all the multiplication tables with numbers from 1 to 10 with a for-loop. Solution Explanation With this challenge, a function is the best choice to accomplish the task. If you aren’t familiar with functions. No reason to worry. But...

Task of Challenge #02/54 Print the odd numbers below than 99 with a for-loop . Solution #01 Explanation #01 To get the expected result, we start the running index i with the value of 1 and have in mind that in between every odd number comes an even number. Therefore,...

## Neueste Kommentare