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

What Martin Luther King intends to say in this sentence: "War is a poor chisel to carve out tomorrow."
Civil war questions! Help!? 1. Briefly explain why ONE of the following best supports the view that slavery largely ended during the Civil War before the passa
Why is it advantageous for organisms NOT to be consciously aware of all the activity in their nervous system? why is it advantageous for organisms NOT to be con
ALGEBRA 1 HELP URGENT!!
Identify three reasons why the u.s. entered wwi after remaining neutral for three years
Explain your model for the problem.
I don't understand what it means by: properly formatted MLA Works Cited Entry. Can somebody please exlain how to create a MLA works cited entry? Also I do not u
Explain the differences between civil and criminal law.
What are the x-coordinates of the solutions to this system of equations? x2 + y2 = 16 y = x + 4
Out of the eleven major earthquakes, how many occurred in the US? Of the eleven major earthquakes that occurred in the last century, how many occurred in the Un