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 flight instructor charges $50 per lesson, plus an additional fee for the use of his plane. The charge for the use of the plane varies directly with the square
Why does Louis XIV want to expand France's border?
USE A NUMBER LINE TO FIND 8/9 / 8/45.
If ab = 10 and a2 + b2 = 30, what is the value of (a + b)^2?
If ab = 10 and a2 + b2 = 30, what is the value of (a + b)^2?
What is 0.05 percent of 6.5?
what is the kingdom and phylum of a euglena protest?
3x+y=4 2x+y=5 solve using linear combination
China, Korea, and Japan share cultural similarities in part due to their (1) clashes with Russian imperialists (2) shared river systems (3) contacts through tra
A circular pool is ten feet in diameter and five feet deep. What is its volume, in cubic feet?