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

A recipe requires 2 pounds of flour if a chef wants to triple the recipe how many ounces of flour will he need
what were some of the interesting discoveries you have about our topic? about yourself?about others?
I REALLY NEED HELP!!!A chemical change takes place when ___.A. Water is boiledB. An apple is slicedC. Bread is bakedD. Rice is cooked​
which property of equation is used to solve m-5=15
Do hot glass and cold glass have the same visual appearanceTrue OR False
Which living expense needs to be included in the budget of someone renting an apartment?A. taxesB. insuranceC. down paymentD. maintenance
ethics nothing to do our personal and social lives true or false​
What is a reason why a dictatorship can also be a democracy
Use lay terms to explain Sandor's injury and the treatment that was required.
What is the area of this parallelogram?