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

does lincoln believe that how you make a living is a fixed or permanent condition?
when two air masses of different temperatures come together, they can cause a
need help with math's home work 1 - increase 235 by 27% 2 - increase 24g by 9% 3 - decrease 1120 of 13.5% 4 - decrease 0.057 by 55% sally investment of £450 has
Mark if the statement about Benin is correct. A. Benin City was the well-organized capital of Benin. B. Benin dominated the rain forest and the coastal regions
The Emergency Highway Energy Conservation Act was passed in 1974. Under this act, states would only get federal highway funding if they set a speed limit of 55
what two factors determine the thermal energy in a substance
how can changing improper fractions to mixed numbers help me determine between which two whole numbers a fraction lies
For example: The solid is not completely submerged in the water. Will this technique error increase, decrease, or have no effect on the reported density of th
Earth's population continues to grow daily. Which of the following statements best illustrates a possible consequence of such rapid growth?
Which is more 3 tons or 6001 pounds