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

The area of a rectangle is 58 in². The base is 8 inches long. What is the height
Fix the two words that are used incorrectly. So your relocating to Houston Bill exclaimed The Chus live in Houston and their wonderful hosts I'm sure they'd hel
6. Would you expect sole proprietorships to generate a higher percentage of total sales? Why or why not?
Based on the information in this excerpt from the passage, what is the meaning of genetic? How much of who we are is determined by our genes? How similar are th
how to see warnings on brainly? I got one, but don't know why. it is not in my notifications.
help? can someone help
What is animal tissue​
which expression is equal to (x+2) (-x^2+2x-6) A: -x^3-4x^2-2x-12 B: -x^3-4x^2-10x-12 C: -x^3-2x-12 D: -x^3-10x-12
Happy new year. Wish u guys all the best in 2022.​
HELP ME PLEASE I WILL BE OH SO GRATEFUL