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

I NEED ANSWERS FAST PLEASE!!! <3 Which is the best example of how geography influences history? A.The Sumerians built ziggurats. B. The Greeks used the human
Four brokerage firms operate in the same small city as Jackson’s firm. All the firms charge approximately the same listing commission and pay approximately the
Identify the statements that correctly describe the story of the ancient Hebrews . The people first had a polytheistic religion that involved worshiping many go
Place the following events in correct chronological order, from earliest to latest: A. Japan invades Manchuria, Tripartite Pact signed, US Oil embargo B. US Oil
If a translation maps ∠D onto ∠B, which of the following statements is true? triangle CAB, point E is on segment AC between points A and C and point D is on seg
another find the equation of this line, please help meeee!
Which two statements describe domestic stocks? They are directly affected by exchange rate fluctuations. They are always traded in local currency. They are like
I'm not sure how to do the math for this
Need help give you a good rating pls.
Find the value of (525)² - (475² using sutible identite​