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 was significant about the new habitats Darwin visited?
You begin solving the equation 4 – 5x = 59 by subtracting 4 from both sides. Which is the best choice for Step 2?
Water Cycle: As _________ get too heavy to hold the liquid, the liquid droplets fall back to Earth.
__________ means to move from one region to another. When animals regularly move as a group from one region to another and back, it's a ______________.
A box if cereal has a volume of 384 cubic inches . If width of the box is 4 inches and the length is 8 inches , what is the height of the box?
A picture frame for a square picture has an area of 80 square inches. What is the length of the picture?
what is the difference between a pentagonal prism and a pentagonal pyramid???????????
Evaporation: Evaporation is the process where a _________ changes into a _________.
The distance between the jones house and the smith house is 96 feet.How many yards is that?
what is the ordered pair solution for;x + 2y = 53x - y = 1