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

which foods earthworms can digest?
How would you define psychological realism?
A graph depicts force versus position. What represents the work done by the force over the given displacement? A. The work done is equal to the product of the m
f f(x) = 2x2 and g(x) = 3x, what is (g o f)(x) a. 6x2 b. 9x2 c. 18x2 d. 8x4
find the amplitude, period, and phase shift of the function defined by: y=3-2cos(3x+pi)
An ice cube is dropped into boiling water. How will heat flow between the water and the ice cube?
How would you define psychological realism?
You shoot an arrow set a target. The parabolic path of the arrow passes through the points shown in table. X. Y 30. 6 60. 7 100. 4 A. Find a quadratic function
Compute the odds in favor of rolling a sum of 10 in a single roll of two fair dice
What was the South’s greatest concern when California applied for statehood?