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

why dog pants during summer use the cocept of evaporation
What's the other term for: explosive or changing very quickly
why dog pants during summer use the cocept of evaporation
explain why the motion of a body which is moving with constant speed in a circular path is said to be accelerated ?
What's the other term for: one who overindulges in food and drink
Which of the following steps is not critical in the creation of Bt corn?a.Cut out a piece of DNA from a DNA molecule.b.Splice a piece of DNA into DNA from anoth
A solution of hydrogen peroxide, H2O2, is titrated with potassium permanganate, KMnO4, according to the following equation: 5H2O2 + 2KMnO4 + 3H2SO4 = 5O2 + 2MnS
What's the word for wandering about; tending to move around, travel
Amy raised £n for charity. Chris raised £18 more then any. The mean amount raised by the two of them is £45. Work out how much money each one of them raised
Which expression is equivalent to 27/125