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

4. The Erie Canal connected Albany on the Hudson with
what percentage of the energy flowing through primary producers is ultimately transferred to secondary consumers?
A small child has a wagon with a mass of 10 kilograms. The child pulls on the wagon with a force of 2 Newtons. What is the acceleration of the wagon?
Which atom in the ground state has a partially filled second electron shell? hydrogen atom lithium atom potassium atom sodium atom
What is x squared - v = w squared making x the subject?
(5a^2 - b^2) - (4a^2 + 3b^2) - (a^2 - 7b^2)
what would the answer be? 619-(68+q) and q is 386
What does new technology generally do to production? a) It lowers cost and decreases supply. b) It lowers cost and increases supply. c) It increases cost and d
A 15-foot ladder is leaning against a 30-foot wall. The bottom end of the ladder is 9 feet from the wall. How many feet above the ground does the ladder touch t
What is x squared - v = w squared making x the subject?