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

help would be greatly appreciated:)
If an animal has gills, then it is a goldfish. What would be an appropriate counterexample? 1. turtles 2. dolphins 3. shark 4. frog
need help with 5 and 6
please help me :) will mark brainly
You have discovered the 1020 steel used to make a part should be strengthened by 10%. a. What strain is needed to increase the strength
Eleanor is composing an e-mail that explains the terms of a recent business transaction. She has determined the purpose of the message, analyzed her audience, a
Israelites were most affected by King Nebuchadnezzar for which of the following reasons? He had a temple built for them. He enslaved them in Egypt. He forced
I need help ASAP!!!!
2 words titles for teachers ​
Xiomara is greatly impacted when Mr. Galiano play a spoken word video , but why?