Write the code necessary to compute the sum of the squares and cubes from A to B .

Write a paper about any current event.
August 5, 2017
Prepare a detailed product cost breakdown, showing variable costs per unit (note: production variable cost used as value of inventory), selling price per unit, contribution per unit, total fixed costs, fixed costs per unit, and profit per unit
August 5, 2017
Show all

Write the code necessary to compute the sum of the squares and cubes from A to B .

  1. Write the code necessary to compute the sum of the squares and cubes from A to B .

The user enters both A and B. Program must check that A<B  If not it requests new values to be entered;

Sample DO NOT USE

enter vales for A and B  A must be less than B

6  3

Re-enter A must be less than B

3   6

3      square=  9     cube= 27

4      square= 16    cube = 64

5     square =25    cube =125

6     square=36     cube= 216

sum of squares = 86

sum of cubes = 432

Leave a Reply

Your email address will not be published. Required fields are marked *