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

Figure A is a cylinder. Figure B is a cone. The figures have the same height and the circular bases have the same diameter. Which statement is true? A) The volu
What was the Zimmerman Telegram (in 1-2 sentences)?
What role did the cities of Mogadishu and Mombasa play in the economic life of East Africa?
y=6*46x for x=-3 =? a)3/32 b)3/8 c)-72 d)3/128
For paramecia during sexual reproduction how is the genetic material exchanged? A. conjugation tubes break apart B. conjugation tubes split in two C. conjuga
What is one reason that more people didn't foresee the economic collapse of the 1930s?
Pls HELP!!!! Help!!
quotient and remainder of 32 and 6
What is the sum of 5x^2y and (2xy^2 + x^2y)
What is the first threat to life from a massive 3rd degree burn?