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

At a certain temperature, a 29.5-l contains holds four gases in equilibrium. their masses are: 3.5 g so3, 4.6 g so2, 22.6 g n2, and 0.98 g n2o. what is the valu
How important is technology in education? what technology-related skills can you contribute to a school district answers?
Find the 6th term of the sequence with t1 = -4 and tn = 5tn-1
State how many imaginary and real zeros the function has. f(x) = x^4 + 12 x^3 + 37x^ 2 + 12x + 36
The constitution reserves the power to provide for and supervise schools for A. The national government B. Only parents C. The states D. Private groups
One mole of oxygen gas has a mass of ________ g. one mole of oxygen gas has a mass of ________ g. 32.0 6.022 × 1023 16.0 8 none of the above
After her conversation with him. Ophelia is convinced that Hamlet is mad. True False
What is one theory to explain what's happened to the settlers at Roanoke
Calculate the future value of an investment of $2300, after 7 months, earning 6.6% apr, compounded monthly, by compounding manually. g
A young boy was riding his bicycle down the street when he hit a parked car. what was the second collision?