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

• Magna Carta • English Bill of Rights • Declaration of
Factor LaTeX: 7v^2+31v+12
distance between ( -3,10) and (5,22)
Which are perfect squares
what will happen to the population when the death rate is larger than the birth rate​
What is 422 8/10 written as a decimal needed in 1 minute ?
free 69 points A rectangular prism has a length of 8 meters, a width of 6 meters, and a height of 3 meters. Which equations could be used to determine the volu
{6y^3+2y^2}{10y^2}= 10y 2 6y 3 +2y 2 ​ =start fraction, 6, y, cubed, plus, 2, y, squared, divided by, 10, y, squared, end fraction, equals Which values of yyy m
Frida and other writers use Google regularly. What are the nouns
There are 8 rulers in the drawer Sara took 3 rulers from the drawer how many rulers are now in the drawer