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

Nucleic acids are composed of monomers called a. ribose. b. base pairs. c. amino acids. d. nucleotides.
a pizza parlor has 8 different toppings and 3 different cheeses to choose from on the menu. How many pizza combinations are possible if each pizza has 1 topping
What happened as a result of the US invasion of Iraq in 2003?
who was the only u.s president that got elected twice
arange 8.508 8.58 7.5 7.058 in decreasing order
I know not what course others may take; but as for me, give me liberty or give me death!—Patrick Henry How did Patrick Henry act on this idea? He became a membe
Jessica wrote 6+6+6 on the board. What is another way to show 6+6+6+6
What happened as a result of the US invasion of Iraq in 2003?
took a test of 25 questions if she missed 2 questions what is the percent she got correct
23.85 divide by 9 work