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 is the ISA? (NO COPY AND PASTE PLS) ​
A tee-shirt company plans to hand out 1,830 coupons during May. It will hand outthe same number of coupons on each of the 31 days of the month. What is thefirst
Find the slope-intercept form of the equation of the line thatpasses through the point (1, 2) and has slope 3.​
HELP PLEASE!!!!!What are the 5 most important things about Buddhism?
Simone is training for a swim race. How can she make sure she always trains at the same speed of 2 miles per hour? Check all that apply. Graph equivalent ratios
What circumstance limiting freedom of speech is reflected in this timeline? 1914: World War I begins. 1917: Charles Schenck distributes pamphlets encouraging U.
Who was responsible for the cold war?
What is the issue lincoln is saying is dividing the government?
Who was the commanding general of the Union army during the last years of the Civil War? A) Robert E. Lee B) Jefferson Davis Ulysses S. Grant D) Thomas J. "Ston
What is the volume of a sphere with a radius of 9.9 ft, rounded to the nearest tenth of a cubic foot?