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

Solve the system of equations: x+4y-z=6 2x+11y+4z=9 x+5y+z=5
Which equation is true?
The research stations of India located in Antarctica are __________ and __________.​
Suzanna wants to measure a board, but she doesn't have a ruler to measure it. However, she does have several copies of a book she knows is 17 centimeters tall.
What feature from greek temple architecture did the early christians adopt in st. Peters?.
PLEASE ANSWER QUICKLY
which measure can make a triangle? A. 19 cm 14 cm 7 cm B. 12 cm 7 cm 5 cm C. 11 cm 13 cm 3 cm D. 2 cm 3 cm 4 cm
Can someone please help me!!!
What is the measure of angle B in the triangle? Enter your answer in the box. m∠B= °__ ​ A triangle labeled ABC with angle A as one hundred twenty degrees, an
Why is it important for you to be an active and informed citizen?