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

Many people aim to leave the world a better place than they found it. maslow used the term "_____" to refer to this type of motivation, which he added to his hi
Evaluate 7a-5b when a=4 and b=3
Which element is oxidized in the reaction below? fe+2 + h+ + cr2o7-2 fe+3 + cr+3 + h2o?
1. Does the function have a minimum or maximum value? 2.What is the function's min/max value? 3. Where does the minimum or maximum value occur? x=
Fusion: A.requires high temperatures B.occurs in the sun and other stars C.creates less radioactive waste than fission D.all of the above
The penalties for a person's fourth DUI conviction include fines of __________. A. $2,000-$5,000 B. no less than $1,000 C. no less than $2,000 D. $10,000
A tennis ball is moving at a velocity of +54 m/s before a tennis player returns it with a velocity of -58 m/s. If the ball was in contact with her racket for 0.
Solve for x. (Round your answer to two decimal places) log x = -2
I couldn't fit the whole graph but it's still clear please help
Geometry math question please help