subject
Mathematics, 16.07.2019 05:40 rhd112458

Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a loop to compute the sum of the cubes of the first n whole numbers, and store this value in total. thus if n equals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total. use no variables other than n, k, and total.

ansver
Answers: 1

Another question on Mathematics

question
Mathematics, 21.06.2019 13:50
James wants to promote his band on the internet. site a offers website hosting for $4.95 per month with a $49.95 startup fee. site b offers website hosting for $9.95 per month with no startup fee. for how many months would james need to keep the website for site a to be a better choice than site b? define a variable for the situation. write an inequality that represents the situation. solve the inequality to find out how many months he needs to keep the website for site a to be less expensive than site b. using words, describe how many months he needs to keep the website for site a to be less expensive than site b.
Answers: 1
question
Mathematics, 22.06.2019 00:00
How many liters of peroxide should be added to 12 liters of an 8% peroxide solution so that the resulting solution contains 16% peroxide?   original added new amount of peroxide 0.96 liters x 0.96 + x amount of solution 12 liters x 12 + x 0.18 liter 1.14 liters 1.92 liters 2.10 liters
Answers: 1
question
Mathematics, 22.06.2019 01:00
What are the domain and range of f(x)= -log5(x+2)
Answers: 2
question
Mathematics, 22.06.2019 01:00
Quadrilateral abcd is translated up and to the right, and then rotated about point q. which congruency statement is correct?
Answers: 1
You know the right answer?
Given an int variable n that has been initialized to a positive value and, in addition, int variable...
Questions
question
Mathematics, 06.04.2021 16:50
question
Mathematics, 06.04.2021 16:50