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

What was one of the economic reforms launched by Bashar Assad after his father’s death in 2000? a. moving Syria toward a free-market economy b.removing a boy
What do I do if I'm trying to get on a website and this pops up?
What would best symbolize republic
Amy is running in the 100-meter dash at her school's annual track meet. If Amy's speed is 8 meters/second, how long will it take her to run 100 meters?
In a 30-60-90 triangle, the hypotenuse is the shorter leg times the square root of two.
What is 9x8 cause I forgot
How have the Greek influenced us?
The following question refers to “Writing a Research Paper”: When beginning to write your rough draft, you should gather all of the materials that you have crea
Read the excerpt from Lizzie Bright and the Buckminster Boy. Together they climbed up to the center of the island, where the trees were thick and high. She sho
The area in the brain that reduces hunger when it is activated is the