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 are the four countries of Lapland? ____________ ____________ ____________ ____________
evaluate 21 - N/3 for N = 12please help :(
What country was the worlds economic leader after ww1
What type of immune system cell performs the most phagocytosis in the body?
Spanish 1 A semester B unit 4 who are the hidden people and why are they known by this term?
I need help seeing what else i can do to make my paper better please
“Persephone” by Walter Wykes your laughter echoes still in that bright field where you played so carefree, a little goddess arms white as milk gathering flowers
Why did UN coalition troops battle Iraqi forces in 1991?
pleasssssse find the apothem
What is the complete subject in the following sentence? The owner of the bookstore helped me pick out a mystery novel for my father.