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

3. Students from 4 classes at Franklin Elementary School are going on a field trip to the theater. Each class has 30 students. There will also be 6 teachers and
Right triangle abc is on a coordinate plane. segment ab is on the line y = 2 and is 6 units long. point c is on the line x = −3. if the area of δabc is 6 square
what are your priorities? projects?​
Governments collect taxes to
Can someone help me out with this question fast!?!?!
what are your priorities? projects?​
Determine which set of side measurements could be used to form a right triangle. 3, 11, 20 5, 9, 17 6, 7, 8 6, 8, 10
can someone help me please with the ixl problem ??? If x < 0 and y < 0, where is the point (x, y) located?
f+1<5 please tyyyyyyyyyyyyyyyy
Maxine compiled a list of these car prices:$7,500,$6,500,$5,750,$4,900,$6,250 and $4,200.Find the mean of these prices