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

What happens when Beowulf first arrives on the shore of Hrothgar's lands? A. Beowulf explains to a watchman that he is there to fight Grendel. B. Beowulf
Simplest form of 45 minutes to 1 hour
Feedback such as good/bad; helpful/useless; important/unimportant; etc. are examples of: a. critique b. evaluation c. criticism d. analysis
Which of the following is not characteristic of the Tallmadge Amendment? As a group, the Southern representatives supported the amendment. Children of slaves wo
By 1914, which European nation had the most powerful navy? a. Russia b. France c. Germany d. Great Britain
What did the Ottoman Turks seek to gain by conquering Byzantine territory? Trade routes Christian scholars Better soldiers Islamic law *NOT D*
In Faulkner's The Sound and the Fury, the character Quentin breaks a watch, given to him by his father, to escape from its ticking sound, which he finds intense
the sum of 10 times a number and 15 is added to eleven times the same number
what is a common use for the physicians Desk Reference PDR
What is answer for x2-5x+6=0