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

What command line utility can be used to repair the bcd on a windows installation?
What TWO political movements in particular, in the early 1800s, did women get involved in?
Which set of adjective pairs correctly describes the clusters into which dsm-5 personality disorders are grouped?
y = 6x − 9. What is the slope of the equation? plz explane how u get there
In a certain town 22 of voters favor a given ballot measure for groups of 21 voters find the variance for the number who favor the measure
how does connotation affect symbolism and metaphor
How would you describe bias and how would you say that bias affects your life
PLEASE HELP!!!!!!! f(x)=x^2−3x+9 g(x)=3x^3+2x^2−4x−9 Find (f−g)(x) Select one: a. −3x^3−x^2+x+18 b. 3x^3+3x^2−7x c. 3x^3+x^2−x−18 d. 3x^3−x^2−x
Rita made $221 for 17 hours of work.At the same rate, how much would she make for 12 hours of work?
ini earned $160 during the summer doing chores. She bought 3 dresses worth $12 each using her chore money. How much money was left after she bought the dresses?