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. The use of first, second, or third person is known as an author's A. narrative point of view. B. personal preference. C. literary perspectiv
The lizards in the show eats about 200 crickets per week.About how many crickets do they eat each day.
Why do cats purr what does it mean when they do?!?
What three properties of a substance affect the amount of energy transferred?
What’s the physical properties of a molecular solid, in regards to its physical properties of formation?
What is the slope of a line that is parallel to the line shown?(0,2) (3,0)
Drag values to complete each equation.
The table shows a function. x 5  4  3  2  1  0 1 2 3   fx 11  3  5 13 21 29 37 45 53 (a) Is the function linear, exponential, or neither? (b) What is t
Find the value of x. X=____
PLZ HELP I NEED THIS IS IN 5 MINS (23+3x)+(8x–41)=15