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

Many plants take advantage of these shallow waters, and in turn, they provide food for the caribou and musk ox that are typical of this area. a. Canadian Shield
3c − 16 = 5 please oh please help me rn
The round base of a copper tea kettle has a radius of 9 centimeters. What is the base's diameter?
long ago one fox is ------- he roming here and there in search of food and finally he look ---------- and he go vineyard he sees ------ripen grapes he want ----
Intr o clasa sunt 36 de elevi arata ca cel putin 6 dintre acestia sunt nascuti in aceasi zi a saptamanii
Isolate x in 3x − 9y = 15.
After cooking chicken on the bone, why must it stand for 5 minutes before serving?
List one method of testing a product quality
9. if you wanted ______, I como with you to the store. ​
Type the correct answer in the box. [tex]log\frac{14}{3}+log\frac{11}{5}-log\frac{22}{15} = log[/tex] (correct answer goes here)