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

Micromanagement stifles creativity and growth. True or false
What are the measurements for c, d & e
Which of the following algebraic equations could represent the sentence the sum of a number and 17 is twenty - two
What protein is a special protein in your blood that captures and carries oxygen?
What is the main message of Douglass's speech? The fight for independence was a long, hard battle. The fact of slavery ruins the celebrations of the Fourth o
What condition brought about the Demographic shifts of the 1920s
How many neutrons does element X have if its atomic number is 29 and its mass number is 99?
How does the law of inertia relate to passengers on a train that is slowing down suddenly.
How can we reduce the time of cooking?
What determines color of a mineral sample