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

Need help drawing a picture to show 9/7
What are examples of slow land changes
is -4 5/12 a rational or irrational number?
what events led to a conflict between the Jamestown settlers and the powhatan confenderacy
What are four possibilities for concluding an essay?
How does the suffix change the meaning of the base word in instruction
What is the value the 0 in the number 601,099
Psychology question Jeremy grew up in an area where the land was flat. Sally grew up a large city with tall buildings. How may their depth perception be diffe
which stage of a river development is characterized by flat floodplains
According to socialist theory, what contributed to the economic gap between the rich and the poor?