cassiegagnier73
03.08.2019 •
Mathematics
Assume there is a variable, h already associated with a positive integer value. write the code necessary to compute the sum of the first h perfect squares, starting with 1. (a perfect square is an integer like 9, 16, 25, 36 that is equal to the square of another integer (in this case 3*3, 4*4, 5*5, 6*6 associate the sum you compute with the variable q. for example, if h is 4, you would assign 30 to q because the first 4 perfect squares (starting with 1) are: 1, 4, 9, 16 and 30==1+4+9+16. submit
Solved
Show answers
More tips
- C Construction and repair How to Choose the Best Underfloor Heating?...
- C Computers and Internet How to Get Rid of Windows Genuine Check?...
- C Computers and Internet War of Social Media: Which Platform is the Leader?...
- H Health and Medicine How to Treat the Flu: A Comprehensive Guide...
- O Other What is a Disk Emulsifier and How Does it Work?...
- F Family and Home What does a newborn need?...
- F Family and Home Choosing the Right Car Seat for Your Child: Tips and Recommendations...
- F Food and Cooking How to Get Reconfirmation of Registration?...
- C Computers and Internet How to Get Rid of Spam in ICQ?...
- A Art and Culture Who Said The Less We Love a Woman, the More She Likes Us ?...
Answers on questions: Mathematics
- M Mathematics Detection of radioactive elements. you observe particles emitted from a radioactive sample. your task is to determine whether the sample is composed of an element a or of an element...
- M Mathematics Let x(t) be a harmful insect population (aphids? ) that under natural conditions is held somewhat in check by a benign predator insect population y(t) ( assume that x(t) and y(t)...
- M Mathematics Point A is located at (1,5), and point M is located at (-1, 6). If point M is the midpoint of AB, find the location of point B. 0 (-3,7) O (0,5.5) O (3, 4) O (0,5)...
- M Mathematics a store charges 25 cents for each ruler and 5 cents for each penicl that it sells. if sarah bought r, rulers and p penicls from the store, which of the following repersents the...
- M Mathematics Which has a steeper slope y=-2x or y=-3x...
- M Mathematics M + 7 is equal to -10...
- M Mathematics A systems analyst tests a new algorithm designed to work faster than the currently-used algorithm. Each algorithm is applied to a group of 42 sample problems. The new algorithm...
- M Mathematics Hlo anyone s free to talk im bor e dd... im...
- M Mathematics The graph of a linear relation passes through the point (-2,7) and has a slope of 1/6. Determine an equation for this linear relation in slope intercept form....
- M Mathematics In ΔRST, m∠R = 92° and m∠S = 71°. Which list has the sides of ΔRST in order from shortest to longest?...
Ответ:
q=0 / initial value assigned is 0
for i in range(1,h+1): / for loop is formatted with range 1 t0 h+1
q+=i**2 / sum q is computed as square of i
Ответ:
nine and a half tablespoons of basil
Step-by-step explanation: