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 is a peasants life different from our life today (comparing peasants life in Middle Ages from our life today)? Please include the following topic on how we
what is 7/20 as decimal?
An algebra test had two parts. Part I had 40 problems, and part II had 60 problems. Bernard got 80% of the problems on part I correct and 90% of the problems on
helppp please. add five different ways of writing 18x + 72.
. Who were the boat people? A. Refugees from Southeast Asia seeking to escape political persecution B. A block of American voters who engaged in activities rela
who's theory of evolution unifies all of biology?
2.95 notebook with 5% tax
Please help me with hw
To determine if a service provider has the experience and skills to do the work, it is helpful to
All of the following are advantages of organic farming as compared to conventional farming EXCEPT: fewer pollutants are released into the environment. higher cr