suzen123
suzen123 suzen123
  • 04-01-2021
  • Computers and Technology
contestada

JAVA

Write a program to display the first ten terms of the series:
5, 10, 17, --------------​

Respuesta :

tonb
tonb tonb
  • 04-01-2021

Answer:

class Main {  

 public static void main(String args[]) {

   int a = 5;

   int delta = 5;

   for(int i=0; i<10; i++) {

       System.out.printf("%d, ", a);

       a += delta;

       delta += 2;

   }

 }

}

Answer Link

Otras preguntas

Dale has ​$2,000 to invest. He has a goal to have ​$3,800 in this investment in 9 years. At what annual rate compounded continuously will Dale reach his​ goal?
Find the length of the third side. If necessary, write in simplest radical form.
City A has a current population of 156289 residents and has an annual growth of 146 residents. City B has a current population of 151293 and has an annual growt
what is a what is a cmpwhat is a what is a cmpwhat is a what is a cmp​
4 3/4+ 7 2/5 simplified
A kayak is originally priced at $329.95. It is now 33% off. What is the price of the kayak now? Your answer 2 points
9,7,5,3 to 14 th term
correct the capitalization. Some goals the Lewis and Clark expedition were exploration and Scientific Research.
The life span of meerkats in a particular zoo
Which two questions cannot be answered through science?