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

How many two digit numbers have one odd digit and one even digit?
About how much alcohol can the average person metabolize, or break down, in an hour?4 beers1 beer6 beers2 beers
Help please ????????
help me with A and B please
How many kj of heat are needed to completely melt 144 g of titanium metal, given that the metal is at its melting point? the heat of fusion for this metal is 18
The Open Door Policy of trade by the U.S. related to _____. Select the best answer from the choices provided. a. China b. Cuba c. Hawaii d. Panama
Given 3(x-2)=6, then x is equal to: Select one: a. 5 b. 4 c. 2 d. 6
How can overfishing lead to ecosystem collapse?
Where are parameters such boot order, processor voltage, motherboard raid, hardware virtualization support, and overclocking configured?
what word or phrase best completes the sentence? Kevin and Kali roll their eyes when Grandpa Joe announces he is going to tell a story ___ they listen to him an