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

Juan's Bagel Shop has a variety of bagels for sale. pumpernickel bagels 12 poppy seed bagels 14 raisin bagels 1 onion bagels 3 sesame seed bagels 4 What is the
This scatter plot provides data on the amount of money four different blockbuster films made in the first six weekends they were shown. Based on the fitted curv
who wants points for now work just put any answer who wants points for now work just put any answer who wants points for now work just put
(-7,9) and (3,-11) in slope please help
Please help I don't understand.
What’s the correct answer
Can somebody please Compare and contrast the Articles of Confederation to the United States Constitution? :) (REAL ANSWERS ONLY!!!)
When making an automobile purchase decision, you should always attempt to find the vehicle that provides the _______ price and the _______ quality.
what is the purpose of the "care" step of first aid ?
A group of signs and symptoms attributed to the excessive production of cortisol by the adrenal cortex is: