aayusha56
aayusha56 aayusha56
  • 23-08-2022
  • Computers and Technology
contestada

write an algorithm to find the sum of first 10 natural numbers​

Respuesta :

balqeeskhanfar2 balqeeskhanfar2
  • 23-08-2022
Supposed we have an array called A, the numbers on it.

Int count = 0
Int i = 0

While(count < 10 && iIf(A[i] >= 0){
count ++;
}
i++;
}
Answer Link

Otras preguntas

Which phrase best describes the location of 22/5 on a number line?
Last week, Hazel paid $32 to have 50 reports printed. This week, she paid $57 to have 100 reports printed. Assume the relationship is linear. Which equation mod
what is earth complete travel around the sun is called?
In which of these sentences are quotation marks used incorrectly? A. I just read a magazine article called "Life Is Learning." B. Allen asked, "Will you be ther
Why is it important to apply chronological thinking when reading a historical narrative?
In both European and Japanese feudalism, power was in the hands of A. land owners. B. the military. C. the Church. D. Confucius scholars.
During a regular half hour tv show, there are 8 minutes of commercials. If each commercial is 0.25 minutes long, how many commercials will be shown during the s
Find the area of the regular octagon.
Evaluate the usefulness of the concept of opportunity cost
PLEASE HELP FAST! :)Which line shows what scientists have done to find the Loch Ness Monster? Using satellite navigation systems, the team made sure every inch