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 number line below shows the values of x that are solutions for 3x-2<4?Show the work.
Guam is politically affiliated with _________.
What,s the number one cause of teen fatalities?
Debbie has $460 in a savings account that earns 8% annually. If the interest is not compounded, how much interest will she earn in 5 years? A) $18.40 B) $36.80
The molecular weight of table salt, NaCl, is 58.5 g/mol. A tablespoon of salt weighs 6.37 grams. Calculate the number of moles of salt in one tablespoon.
By June of 1940, Hitler had already done which of the following? Check all that apply. He had invaded Russia. He had conquered Norway. He had conquered Great Br
what role have military forces played in the governments of latin america
Cold War policies in Southeast Asia are best illustrated by A) China's support of South Vietnam. B) France's support of North Vietnam. C) the United States'
The human appendix is an example of
7(2j + 1 + j) 3. You will now use mathematical properties to create two expressions that are equivalent to the expression. Make sure you show all steps in your