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

What does jing-mei's mother pressure her to become?
Star, inc., is attempting to decide whether or not if it should change its manufacturing process to a new type of technology. this represents a(n) _____________
Simplify completely 40 v squared over 35 v to the fourth power divided by 20 v cubed over 5 v. 2 over 7 v to the fourth power 7 over 32 7 v to the fourth po
What causes a chemical bond to form between atoms? transferring or sharing electrons. spinning or stopping electrons. ejecting or absorbing electrons.
When was the last time cleveland won a championship in any sport?
Thanks to a relatively new vaccine, most ________ can now be prevented if people are vaccinated before they become sexually active.
if a leaf falls from a tree we assume that it is in free fall and not affected by air resistance, how many force vectors does the leaf have?
Rochester is the type of employee firms like. he never objects when asked to take on assignments outside his job description and will work overtime with little
What aided the decline in population in the northeast and midwest in the 1970s?
express 12.28 as a mixed number