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

please help me on this​
Dog breeders maintain the purity of breeds by keeping dogs of different breeds apart when they are fertile. This kind of isolation is most similar to which of t
number 8 please! i kinda need help ASAP please! it’s due tomorrow
bacteria can normally be found in many areas of the body. where should they never be found related to the body
a medical transcriptionist has a four drawer cabinet. one drawer is 4/5 full and one is 1/2 full and one drawer is 3/4 full. can the contents be combined into 3
Which angle refers to the same angle as ∠ D E F
1 liter is equivalent to a volume of 1000 cm3 (the same as 10 cm x 10 cm x 10 cm). If a beaker has a cross-section the size of the circle below, and a height of
The lifespan of a zebra is 15 years. The lifespan of a black bear is 3 years longer than the lifespan of a zebra. Write an addition equation that you could use
What term describes the moon's path around Earth? eclipse phase revolution rotation
Every day, Kylie's orange juice stand uses 1/2 of a bag of oranges. How many days will 4 1/2 bags of oranges last? Write your answer as a fraction or as a whole