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

a middle school has 246 students. one third of the students ride to school in a car. all the other students ride a bus to school. how many students ride a bus
Given the system of equations, match the following items. x + 3 y = 5 x - 3 y = -1
with regard to ordinary dating method discounts where a 2/10 option is provided, if no net is mentioned, then ______ days is the net payment date, based on comm
What is the change in enthalpy for the single replacement reaction between solid zinc and cs2so4 in solution to produce cesium and znso4? zn cs2so4 → 2cs znso4
The __________ makes contact with the coil of an AC generator. a. conducting brushes c. current brushes b. slip rings d. dynamos
what is the area of a circle with a circumference of 11 pi
Richard makes 8 quarter-pound hamburgers on the grill. how many pounds of hamburger meat does he use?
The male elephant at the city zoo weight 8,000 pounds, which is the same as 4 tons. the female elephant weight 7,000 pounds. how many ton does she weigh.
explain why cliffs collapse
What are RFID tags used for? (Select the best answer.) Question 21 options: Protecting trademarks Creating an expense journal Shipping products Tr