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 70,030,000 in scientific notation
is -n always sometime or never a positive number ?explain
Can some one help me ? ???
a=(vf-vi)/t solve for vf
If  lies in the quadrant IV. What can be the value of cos  ?
67.943 in expanded form
give me a sentence with the words risk and wages
If every positive number has two square roots and you can find the length of the side if a square window by finding a square root of the area, why is there only
A base 7 three-digit number has its digits reversed when written in base 9. Find the decimal representation of the number.
25% of 88 is the same as what percent of 22? 1) 12 1/2% 2)40% 3) 50% 4) 100%