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

i need this translated please
What are two examples of networks solids?
25% and 16% as a single digit rate
Create the algorithms in both flowchart and pseudocode form for the following two program requirements: Given 100 item prices in an array called prices[100].
Describe different situations in which an infant or toddler might experience separation anxiety. What can a caregiver do to make the child feel more comfortable
A switch that has two throws and switches only one wire is known as a(n) A. SPDT. B. SPST. C. TPDT. D. DPDT.
Carla packed this box with 1 centimeter cubes what is the volume of the box
Josiah sold 3 shirts for $24.50 each and 2 pairs of jeans for $30.00 each. Which expression can be used to find x, the total amount of money he collected from t
what is (-4, 4) and (5, -14) in y=mx+b
Identify two examples that support the author's claim that America loves doughnuts.