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

PLEASE HELP IM CONFUSED! Find what the measurements of angles a-c are and state the reason
PLEASE HELP ASAP!!The equation 6x + 4 = 5x + 12 + x - 8is true for all real numbers. Substitute a few real numbers for x to see that this is so and then try sol
7/2x + 1/2x = 10 1/2 + 5/2x
Simplify the expression -3.3 + (-2.7). On the test, when Maureen simplified the expression she got 0.6. What mistake did Maureen likely make when she simplified
The word gato means: O rooster O 0 O dog fish​
Select the correct answer. Steve and his brother used to work at the same organization. A few months ago their employer terminated them because the business had
HELP!!! (Picture down below)
Question:Hank started the month with $531.49 in his bank account. He deposited 2 paychecks during the month into his bank account. One for $240.42 and the other
In the Articles of Confederation, which powers are delegated to the national government?
Question:Which of the four skills (reading, writing, listening, thinking) is the most important in order to be prepared and successful in high school and colleg