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

chlamydia, if left untreated:
me importa el medio ambiente y __________ a reciclar la basura. mi compañero de cuarto, fernando, tiene un perro entonces él va a __________al perro y _________
a mole of carbon dioxide (co2) has 12.0 grams of carbon (c) and 32.0 grams of oxygen (o). what is the percent composition of carbon in carbon dioxide?
Charles martel became a christian hero when he stopped the muslim invasion at the battle of tours. a. true b. false
Which system of government did the constitution create in the United States a. Confederation b. Parliamentary c.federation d. Limited monarchy
Most slaves were used for manual labor. true false
2 propeties of copper
when all power and authority rests with one person, it is called a
What is the purpose of the vas deferens? A).to store, develop, and transport sperm cells from the testes B).to release the sperm from the penis C).to produce se
The us president whose economic policies were connected to the teapot dome scandal was theodore roosevelt. warren g. harding. calvin coolidge. franklin roosevel