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 is the abrivation of ufo?
pls help I need it by 12:00 I chose marine biology Write 3-5 sentences about your personal feelings toward this career. Do you think you could ever have this
please qive me questions on Mental health concerns on during pandemic like example:- were you or anyone you know was affected by the global crisis mentally? bas
30 points! You start at (-2, 2). You move left 3 units and right 10 units. Where do you end?
58-(1/4)2 i dont get how to solve this
The endocrine system consists of __________ and many other organs. 10 points neurons glands homeostasis dendrites
Which of the following provided sellers free land if they agreed to move west to live and farm on the land? A. Monroe Doctrine B. Oregon Territory Treaty C. Go
Which feature is not in ms PowerPoint​
If the value of the x=4 y=3 and z=-2 find value of A. (x+y)² - 2z B. 2xy-3z C. 2x²-4y+z​
Draw a line representing the "rise" and a line representing the "run" of the line. State the slope of the line in simplest form.