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

91,007,500 in scientific notation with positive powers of 10
Tia is buying paper cups and plates. Cups come in packages of 12,and plates come in packages of 10. She wants to buy the same number of cups and plates, but pla
What is the GCF of 32 and 48
4.44 4.044 greater or less
The moon is about 240,000 miles from Earth period what is the distance written as a whole number multiplied by a power of 10
What does the fact the pi is irrational indicate about it'd decimal equivalent
If 6 and x have the same mean (average) as 2,4, and 24, what is the value of x? And how?
8 times 51 show your work
If every positive number has two square roots and you can find the length of the side if a square window by finding a square root of the area, why is there only
The fastest a human has ever run is 27 miles per hour. How many miles per minute did the human run?