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

Where does shearing often occur? along a normal fault along a reverse fault at a transform boundary at a divergent boundary
Draw the graph with its equation -2x+7y=14?
Give the number of significant figures: 7.110 g
Which organic compound has this component? DNA A.carbohydrates B.lipids C.nucleic acids D.proteins
What are nine main psychological approaches?
Describe how blood perfusion to the brain may impact brain health long term.
A random sample of 70 printers discovered that 25 of them were being used in small businesses. find the 95% limit for the population proportion of printers that
At which income level does consumption equal income in table 9.1?
What is arable land? A) a fabled “promised land” that motivated early explorers B) territory in the disputed zone between Sudan and Darfur C) soil that can be p
Write a balanced equation for the combination of magnesium and oxygen to form magnesium oxide, mgo. phase symbols are not graded.