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 sentence correctly uses an objective case pronoun? a. Him directed Austin to aisle eight of the store. b. Pay your uncle and her a visit. c. Will Morris
please help check my answers I beg you!!!!!!!
Which piece of dialogue from The Chaste Adventures of Joseph: A Comedy most reveals Madam Potiphar’s motives for wanting her husband to replace his secretary, J
Which elements of narrative poetry are reflected in "The Thing about Terry”?
Which statement describes the Code of Hammurabi? a. Eye for an eye b. Laws that only applied to the rich. c. Laws that applied to everyone universally. d.
In this line from Walt Whitman's poem "Song of Myself," what is the meaning of the word leavings? And as to you Life I reckon you are the leavings of many death
Alguien me puede decir el sustantivo derivado del verbo crujir
is 1/5 greater than2/10
Lichens, represented by this symbiotic relationship, are responsible for _____________ or the establishment of a new site for plant growth. A) primary successio
List the four fundamental forces in nature