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

Identify the subordinate clause and tell if it is used as a noun, adjective, or adverb. Click on the blue box until the correct answer appears. The 4-H Club is
How do you use area on funny looking shape
give an approximate value of the square root of 1000 to the tenths place.
what is 1/3 + 7/12 x 4
Based on diction, which of the following phrases would most likely complete this sentence: Kyle stomped into Taco Bell and __________. A. sweetly requested the
Which personal pronoun agrees with the antecedent in this sentence? Everybody who participates in the boys' soccer camp must bring __________ own bag lunch. A.
find the sum to the equation of:
Why is RNA chemically unstable?
Is choosing 5 players to represent the team at a fundraiser a permutation or a combination? please explain
An oval group of stars is an "what" galaxy?