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

A cylinder has a volume of 321 cubic units. If a cone has the same height and radius as the cylinder, what is the volume in cubic units? A.107 cubic units B.214
explain in terms of element classification , why K2O is an ionic compound
Which scientific evidence would show that two species of birds are closely related
The variability in marine salinity between habitats dose not impact the fish living there
What's the hinge theorem and it's converse?
14. Which of the following sentences is correct? A. Does anyone know why Steve ordered five dozens of eggs? B. Seven thousands of people showed up for the conce
The cartilage which divides the nose in two parts is called the
which part of the cell membrane is polar and allows the cell to exist in water
a car with a mass of 1200 kilograms is moving around a circular curve at a uniform velocity of 20 meters per second. the centripetal force on the car is 6000 n
What are the roles of women for the Mi'kmaq