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

Elle passe _______à l'école. A) une vidéo B) la journée C) la main D) une questionAnd the other on the picture ​
a+company+makes+steel+rods+shaped+like+cylinders.+each+rod+has+a+diameter+of+4+centimeters+and+a+height+of+60+centimeters.+if+the+company+used+54,259.2cm^3+of+s
How was Magellan's voyage different from Columbus? A) Magellan sailed south down the coast of South America B) Magellan sailed north around Europe to the Pacifi
How many milliliters are in 1 quart?
Jerome is suffering from depression and is undergoing treatment in which electric shocks are delivered to his brain. What type of therapy is he receiving? O psy
Two-dimensional objects are measured by the quantity called 1 volume 2 height 3 length 4 area
answer plssssss i’m stuck
12. Tomas y Paco béisbol en la escuela. (jugar)
anyone could help a little?
Which sentence is true about an equiangular triangle? A. Only 2 angles have the same measure. B. Only 2 sides are the same length. C. Each angle has a different