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

1/3 b = 5/4 . Which of the following equals b in this equation? A. 2 2/5 B. 1 1/8 C. 2/5 D. 1/4​
The probability of a certain spinner landing on yellow is 2/3. If you spin this spinner 45 times how many times would you expect the spinner to land on yellow?
which causes the ph of a solution to increase A.adding hydrogen ions B.adding protons C.adding base D.adding acid
I need help with this math question. It is really hard. What is 2x+20=100
Which industrialist earned a reputation as being especially ruthless towards workers?\ Henry Frick Andrew Mellon Andrew Carnegie John Heinz
Between the years 2009 and 2013, the primary factor that caused collisions in california was _____.
What are the “five little stone lozenges” mentioned in line 11?
_____ is a strategy whose goal is growth, based on selling in areas or to groups previously not served by the business. A. Market penetrationB. Market expansion
Help please and explanation please
I start working at Wendy's today, any advise?