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

The diameter of a sphere is 4 centimeters. Which represents the volume of the sphere? 32/3 cm3 8 cm3 64/3 cm3 16 cm3
f(x) = x^2 . What is g(x)?
Margaret mixes 1,4000 centiliters of grape juice with 5 2/3 liters of seltzer and 2/5 liters of orange juice. How many liters of punch will this make?
Explain how microorganisms are useful to us in daily life.
A bar of cast iron 18.125" long has been tapered from a diameter of 0.983" to a diameter of 2.74". What is the difference in diameter between the two ends?
you are the hardest worker at the restaurant which one is the verb​
I need help wiith all❤️It’s urgent please
There was a man named Luis accused of killing a women a few nights ago. A week later, he goes to court with his brother, Jhon. They know it was Luis who did it,
A corporate customer stopped by to check in for her reservation for four nights at Redwood Falls Inn. Kevin had already charged the whole amount for the custome
(-1)+5-(-6)-5= Need answer