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

A cliché is a _______ expression. A. worn-out B. foreign C. new D. wordy
Add. –4.75 + 2.19 a. –6.94 b. –2.56 c. 2.56 d. 6.94
Which of the following climates is most suited for physical weathering? A. Hot B. Cool C. Warm D. Dry
Soccer is the most popular sport in the United States.
what is a antonym for organelle
What percent of 925 is 37%
1.How does inertia affect a person who is not wearing a seatbelt during a collision?
What is the area of a rectangle with vertices at (4, 3), (11, 3), (11, 9), and (4, 9)?
howcto write 9,000,009 in word form
What is the area of a rectangle with vertices at (4, 3), (11, 3), (11, 9), and (4, 9)?