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

If f(x) is differentiable for the closed interval [-1, 4] such that f(-1) = -3 and f(4) = 12, then there exists a value c, -1< c < 4 such that f '(c) = 3
Please help with the question in the picture!
Given that cosθ = - and θ is in Quadrant III, match the following items. 1. sinθ 11/60 2. tanθ -61/11 3. cscθ 60/11 4. secθ -60/61
Al saves pennines. He agreed to give 6/13 of his pennines to Bev if she would give 6/13 of what she got from Al to Carl and if Carl in turn would give 6/13 of
Answer 3,4,5 and 6 Read the directions!☺️ (15 points):)
A drawer contains 15 cents stamps and 18 cent stamps the number of 15 cent stamps is four less that three times the number of 18 cent stamps the total value of
Write a sentence using a gerund phrase with a pronoun object.
___water was in a jug.what will come
What does the word "e-business" mean?
what the slope of (0.0and (2.1)​