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 peninsula is occupied by spain and portugal
Which condition would disturb the hardy-weinberg equilibrium and cause the gene pool to change?view available hint(s)which condition would disturb the hardy-wei
y = 2x + 3 2y = 4x + 6 The system of equations has _____ solution(s). A. no B. one C. infinite
Once everyone is recycling, the maximum value equals 100% and the growth of people who recycle stops.
suppose an author writes a story during world war 2, when a coalition of nations joined together to stop the axis powers of germany, japan, and italy, who threa
Jim had 92 more marbles than Sam. After Sam gave Jim 18 marbles, Jim had twice as many marbles as Sam. How many marbles did Jim have at first?
Describe the effects of bullying on both the bully and the victim of bullying.
Solve for nn-3n=14-4n​
why were loyalist willing to support continued british rule but pariots were not ?
I’ll give brainlyiest (sorry if I spelled it wrong) to first correct answer