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

PLEASE HELP! DUE TODAY!! TY!:) Quadrilateral ABCD is inscribed in a circle. Find the measure of each of the angles of the quadrilateral. A) Write and solve an
In which political system do people govern themselves?.
Why were labor organizations perceived as a threat to community life?
) Andy is walking her dog Sherman on a local trail and Sherman falls 100 feet down a ravine. Andy is overcome with emotion and needs your help to save her dog.
Why would you want a small remote valve and a large valve close to the cylinder?
How many grams of nicl2∙6h2o will be used to prepare a 0. 0350 m, 500. 0 ml of nicl2 solution?
How long was Texas an “independent republic” before becoming a state in 1845?
MARKING BRAINLEIST IF CORRECT
Giving Brainliest A spy realizes his cover is blown and flees toward his secret evacuation spot at a speed of 60 mph. Two hours later, a special agent in a heli
Give one example of cation and anion? ​