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

What is 258/300 written as a decimal and a percent???
florence has only $420 in her hank account. describe how to find the amount after she writes a check for $590
what is 15.70796327 rounded to 1 decimal point?
What is this answer?10y=360°
Which words in this sentence are common nouns? Until the Spaniards brought cattle and sheep from Europe, the Aztecs had no dairy products. Choose all answers th
work out the parallelogram of base 6cm and height 8cm
There were 149 angelfish and goldfish in an aquarium.  There were twice as many guppies as angelfish.  After selling 35 goldfish there are half as many goldfish
work out the parallelogram of base 6cm and height 8cm
How did geography influence the way the Incas ruled the empire?
What does this mean?The levying money for or to use of the crown by pretense of prerogative,without grant of parliament, for long time, or in other manner than