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 wet towel is hanging on a clothesline in the sun. What process does the towel dry by?
Which statement best describes a capsid? a. A capsid defines the shape of the virus. b. A capsid is the outside coat of the virus. c. A capsid is a protein coat
what type of reaction produces a metal from its metal oxide
Which text exemplifies the anti-Victorianism prevalent in the early twentieth century? a) Eminent Victorians b) Jungle Books c) Philistine Victorians d) The
Why can't we change the subscripts in balancing chemical equations?
You hear a thunder 3 seconds after you see lightning. How far away is the storm?
Why can't we change the subscripts in balancing chemical equations?
Which text exemplifies the anti-Victorianism prevalent in the early twentieth century? a) Eminent Victorians b) Jungle Books c) Philistine Victorians d) The
if y is the principal square of root 5,what must be true
A punch  recipe calls for 3 pints of orange juice does the recipe How many ounces oof oranges juice does it requirew