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

express the area of this triangle as monomial.
(PLEASE HELP) Find the values of x and y
When x= -2 which of the following points is on the graphed line y= -4x + 3
What of these steps is crucial when doing a close reading on nonfiction
One day, Fiona and Heidi each bought coins at a coin shop. The equation f(x)=3x+12 represents the value of Fiona’s coin, in dollars, x years later. The graph sh
The Winners' Circle sportswear and equipment store bought a baseball glove from DOCK's Sporting Goods for $66.00. They want to mark up the glove 70% on selling
I NEED HELP ASAP PLEASE!!!!! Which sentence correctly uses the word debased? A. After talking to her cousin, she debased her diet by eating two fast-food sandw
determine all possible values of w given the inequality w-9<4w A. W>3 B. All real numbers C. W>-3 D. W<9/4
How many girls are in the marching band? And how can I turn 3/10 into a number
What is 10 2/3 + 3 1/3 and explain your answer