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

how do you solve 9c(c-11)+10(5c-3)=3c(c+5)+c(6c-3)-30 if we are multiplying polynomials by monomials
By the time shana had completed 3/8 of her first lap in a race, she had also completed 1/32 of the entire race. How many laps were there in the race.
1. When selecting a mode of exercise for a client, it's important to consider the A. amount of interaction with other clients. B. long-term enjoyment of the
why did the farmers develop a system of checks and balances
Which of the following is a true statement of diffusion? A.) Diffusion is only important for animal cells. B.)Diffusion require energy input from the cell. C.)
Solve each system using substitution: 1. 4x - 5y= -15 y= -3x + 22
how might the way a biologist uses a microscope be different from the way a doctor uses a microscope
Why does E.E. Cummings describe the balloonman in "in Just" as "goat-footed"? A. to allude to the Greek god of music and playfulness B. to compare the balloo
find the greatest common factor of 50 120 and 80
The theme of a story refers to its