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

Claude Monet cut off part of his ear before spending time in an asylum. True or False?
Find the distance between the points given. (-3, -4) and (0, 0) -5 5
plato users Select the correct text in the passage. In this excerpt from act IV of Shakespeare’s Macbeth, identify two biblical allusions. MALCOLM: What I b
Dane knows that _____ is anything that challenges him psychologically or physiologically and warrants some type of adaptation or adjustment.
Piaget described and labeled several operations that children in middle childhood cognitively can do:
Use the materials you have reviewed and your own knowledge of the foreign policy challenges facing the United States after the Cold War to write an essay analyz
What goes in the blank. Me gusta__ cuando juego al tenis. No me gusta perder
What is Equivocation
Electron configuration of rubidium
Which of the following instruments creates sound through striking