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

There are several ways to express solution concentration: dilute, concentrated, ppm, molarity, molality, normality. All of these have one thing in common. They
Compare and contrast open, closed, and isolated systems. Be sure to discuss the exchange of energy and exchange of matter, and provide at least one example of e
adam bought a new flat screen tv with an area of 21 ft the screen is 3 feet wide how tall is it​
what is a biological study?
please help!! determine an equation ( ax^3 * bx^2 + cx + d ) for the data.
Read the passage. "That's the worst of living so far out," bawled Mr. White, with sudden and unlooked-for violence; "of all the beastly, slushy, out-of-the-way
What is the slope of the line y = -1/4x?
when a chemical has occured on you clothes you should ?
The length of the hypotenuse of a right triangle is 157 units. The length of one leg of the triangle is 132 units. Lara wrote the following step to find the len
Write three to five sentence explaining any strategies you used and what new understanding you gained from the text as a result of reading it aloud