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

(50 POINTS!!) The two triangles are similar. What is the value of x?
In recent years, Albania has ____. A. Refused aid from foreign nations. B. Rebuilt links with other nations. C. Declared war on several of its neighbors. D. Bec
Wanda Sue copied a paragraph from the encyclopedia into her research report, but she changed a few words. What would you call this? a credible source an informe
The goal of the Montgomery bus boycott was to
Oswaldo earns a salary of $2500 per month plus an 8% commission on all of his sales. He wants to earn $5400 next month. Write an equation that shows what his to
How do writers uses direct characterization in a story
please help... Why is it so important for art critics to get their reviews published by the media?
help me out with this problem please!!and (please tell me how you got the answer.) The square of a number increased by 3 times the number equals 4.Find the numb
Write 0.79 repeating in lowest terms
How many solutions dose 3x-2x+x+2 have