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

How do I put 0.924 in two other forms
how do I write 0.326 in two other forms
Barb is making a bead necklace.She strings 1 white bead,then 3 blue beads,then 1 white bead,and so on.Write the numbers for the first eight beads that are white
Identify the basic structure of a chemical equation?
Name 2 forces acting on an object at rest Only need 1 got gravity
What does ¿El Día San Valentín es el trece de enero? Mean
Modern Western ideas about freedom, the value of the individual, forms of government, and systems of law came from __________. (Points : 2) Africa and India Gre
Please give answers ! 17 points please help
The moon outside is very large, but you cannot see all of it. The calendar shows that the moon was invisible just less than two weeks ago. What phase is the moo
effect: spain's long-term naval superiority dwindled