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 percent change of 92 to 69 first value to the second
When using a motivated sequence organizational style, the V in ANSVA refers to the variety in your speech. Please select the best answer from the choices pro
Which is the primary cause of food-borne illness? Mercury, Microbes,lead, prions
The field that deals with behavioral issues as well as technical issues surrounding the development use an impact of information systems used by managers and em
A synonym is a word that has the same meaning as another word. t/f
why was the phalanx the most powerful formation in the ancient world?
In this excerpt, Charlotte and Mrs. Sowerberry are reacting to what the reader sees as Oliver's ______. Noah most likely pours water on Mrs. Sowerberry because
Which of the following areas is the most inaccessible to humans? Papua New Guinea Micronesia Guam South Pole
If you cut your tongue off, will it grow back?
Infertility can result from problems with a woman's or a man's reproductive system, or from problems with both What can increase a man's risk of infertility?O p