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

You are helping a customer put a large item in his car. as you go out the door you notice a $20.00 bill on the ground . what woul you do? a. ask the customer i
A boat takes 4 hours to go 20 miles upstream. It can go 32 miles downstream in the same time. Find the rate of the current and the rate of the boat in still wat
which component of physical fitness is skill related ?
which reason best explains why antibiotics do not work on viruses
The region bounded by the given curve is rotated about the specified axis. Find the volume V of the resulting solid by any method. x2 + (y − 4)2 = 16; about
simplify 15.6 divided by negative 3..
the maximum amount of time foods may remain in the danger zone is _______.
__________ is when rival companies cooperate for their mutual benefit. a. cartel b. collusion c. non-price competition d. merging
Jesse owns a sporting goods store that sells skis and snowboards. The store earns a profit of $52 for each ski sold and a profit of $64 for each snowboardsold.
A_trait is controlled by more than one gene