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

Arrange the activities in the appropriate order in which they happen by typing the number in the right column. (For example, type 1, not one.)
what details from "the moneys paw" most clearly helps create tension
Choose the pair that best represents a similar relationship to the one expressed in the original pair of words. Poison : Toxic Satellite : Space Wavelength : Sh
Besides drinking and cooking, in what other ways do you use water?
RACHEL: Hi everyone, Today we are going to talk about the short story 'In My Dream by Sarah Parker. Let's just jump right in, 0.K.? What do you think the recurr
A car traveling along the highway needs a certain amount of force exerted on it to stop it in a certain distance. More stopping force is required when the car h
Solve for 'x' in the following equation, explaining each step. 3^ (-3x+7) = 3^ (7x-13)
Use properties to evaluate 3/4(1/5÷3/5)(-8). A. 2 OB. 5 O C. -2 OD. -5
4. How are the zeros of a polynomial function used to create a graph?
fill in the blanks with the correct form of the verb to have and the palt of the body that is numhered. (2 pls.each)​