aayusha56
aayusha56 aayusha56
  • 23-08-2022
  • Computers and Technology
contestada

write an algorithm to find the sum of first 10 natural numbers​

Relax

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

Bob bought 24 hockey tickets for $83. Adult tickets cost $5.50 and child tickets cost $2.00. How many of each did he buy?
Determine whether the figure is a right triangle. a right triangle contains one 90 degree angle. Justify your answer with slopes. ( question 16)
is it possible to have congruent angles created by complementary angles
is it possible to have congruent angles created by complementary angles
What were some of Hongwu's agricultural Reforms?
What are the characteristics for equivalent fractions
Which of the following is an irrational number? A. √254 B. 0.6 repeating C. 159÷7 D. √361
In a state, license plates consist of four letters and two digits. How many different plates are possible?
Allison has more than 2 but less than 3 hours to spend on her homework.she has work in maths,english,and social-studies.she plans to spend equal amounts of tim
Wanax was another name for a Mycenaean _____.