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

I NEED HELP PLEASE!!!!!!!!!!!!!!!!!!!!!
los dinosaurios blank hace mucho tiempo
Karim builds a wooden table. 3 Superscript 4 in. A rectangle with a width of question mark inches. The rectangular top of his table has an area of 3 Superscript
What is the mixed number of 14/4
I need Help please Thanks
What areas have the lowest population density, and why?
Solve the equation. W3 = 27 W= (Type an integer or a simplified fraction.)
Filling in marsh areas to create more land is best described as an example of how people __________. A. adapt to their resources B. modify their resources C. a
Imagine you have a friend who does not know much about programming or HTML, but wants to design his own web page. He has decided to use rapid development tools
please select all the things below that are part of the origin of Africa slavery in English American​