maxito2873 maxito2873
  • 02-10-2017
  • Mathematics
contestada

Write a while loop that sums up the squares of the integers from 1 through 10.

Respuesta :

mathmate
mathmate mathmate
  • 02-10-2017
count=0;
sum=0;
while (count<10) {
  count++;
  sum+=count;
}
// result of summation is stored in variable sum
Answer Link

Otras preguntas

A person has been lost in the woods for approximately 6 days, 5 of which the person hasn't eaten. At this pointing her blood glucose levels are still 65mg/mL. W
2,4-dinitrophenol (DNP) is a weak acid that can diffuse across lipid membranes. When added to eukaryotic cells, DNP can enter the mitochondria and move protons
The radius of a cone is halved, but its height is doubled. How will the volume of the cone change?
Temporary disabilities like a stiff leg _____. A. won’t affect your drive B. will affect your drive C. only matter when it's your left leg D. only matter wh
a container built in the shape of a cylinder has a circular base with a radius of 1.5 meters. the altitude of the container is 3.5 meters
The function of honeybee drones is to bring nectar back to the hive. a. True b. False
When comparing height/weight tables, BMI, and body composition, which is most accurate for determining ideal weight?
Name the four chambers of the heart.
Species with different evolutionary histories (ancestries) that resemble each other in body form have under gone what form of evolution? Example: The physical s
Determine the relationship of AB and CD given the following points: A (2, -3), B (4,-6), C (7, 2), and D (5, 5). Parallel Perpendicular Adjacent Neither