Question: I am able to get the odd integers between the two numbers but I need to find a way to get the sum of all

 I am able to get the odd integers between the two

numbers but I need to find a way to get the sum

I am able to get the odd integers between the two numbers but I need to find a way to get the sum of all these numbers squared. Is there a way I can take these numbers from the while loop or perhaps create another while loop so that I can take the sum of the squares of the odd integers between the two numbers?

For example if my two numbers were 10 and 20, I want to have my odd integers read 11, 13, 15, 17, 19

And I want my sum of the squares of these numbers to be 1165

8 #include

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!