Task of Challenge #10/54 Calculate the sum of numbers in an array of numbers. The array: [1, 9, -19, 3, 5, 3, 7, 14, 91]. Solution Explanation To accomplish our task, we need to iterate over the array and build the sum out of each element. Since we aren’t so...

Task of Challenge #09/54 Create a function that will convert from Fahrenheit to Celsius. Convert -38 degree Fahrenheit. Solution Explanation How to convert Celsius to Fahrenheit The temperature T in degrees Fahrenheit (°F) is equal to the...

Task of Challenge #08/54 Create a function that will convert from Celsius to Fahrenheit. Convert 0 degree Celsius. Solution Explanation How to convert Celsius to Fahrenheit The temperature T in degrees Fahrenheit (°F) is equal to the...

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...

## Neueste Kommentare