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

If a line on a distance-time graph becomes steeper,what has happened to the speed of object?what if it becomes a flat horizontal line?
HELPPPPPP MEEEE FAST WILL 80 POINTS WILL GIVE BRAINLIEST
Please help please please
find in the following, x. SV || RU
how many oxygen atoms are in this formula 4H2O​
For this discussion board post, think about the implications and consequences of understanding the human soul (atman) as both same as and different than God/uni
Can someone pls help me pls I would really appreciate it
8.1 A local government is considering promoting tourism in the city. It will cost $5,000 to develop a plan. The anticipated annual benefits and costs are as fol
In a rose garden, the ratio of red rose bushes to yellow rose bushes to white rose bushes is 5 : 2 : 6. There are 24 more red rose bushes than yellow rose bushe
How did the french help the americans in the revolutionary war?​