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

Look at the two-way frequency table below. Favorite Dog Breeds Lab Terrier Poodle Other Total Male 18 22 6 28 74 Female 14 26 8 12 60 Total 32 48 14 40 134 Whic
The table shows the results of spinning a wheel 80 times. What is the relative frequency of the event "spin a 3"?
Find the surface area of the pyramid. The side lengths of the base are equal. pls help D:
Please help with math questions.​
A 200g air-track glider is attached to a spring. The glider is pushed in 10cm and released. A student with a stopwatch finds that 10 oscillations take 12. 0s. W
I need help on number 3 and 4 Please
The parasite ___________ can be spread in water supplies, water parks, and community swimming pools.
Find the volume of the solid obtained by rotating the region bounded by the given curves about the specified axis. Y=0, y= \cos(4 x), x = \frac{\pi}{8}, x = 0 a
Which expression is equal to (screenshot)
please help me find the area of compound shapes?!?!