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

What is the effect on the graph of the function f(x)=2x when f(x) is replaced with f(x-3)
what is the meaning of life
You deposit $175 in an account that pays 4% interest compounded quarterly. How much will you have in the account after 2 years? ​
Parasympathetic antagonists would stimulate gastrointestinal motility. True or False
Match each sentence to the correct literary device
ANSWERRR What happened in Salem, Massachusetts in 1692 ?
Order these numbers from least to greatest. 4.665, 4.84, 4 2/3, 37/8
what is the 50th state to exist
Use basic trigonometric identities to simplify the expression: 2 sin (x) cos (x) sec (x) csc (x) = ?
how does a balanced diet help you obtain folate?