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 square rute of 81
Suppose that a space shuttle weighs 4.5 million pounds at liftoff. What is the space shuttles weight in tons?
Do kelp have nuclei, and organelles?
PLEASE HELP!!!! :) Farmers in the northern Indo-Gangetic plain of south Asia rely mostly on: A. Water carried by rivers that drain from the Himalayas B. Cool ai
in terms of education, state governments are responsible for. A. creating private schools. B. establishing school districts. C. providing transportation to sch
What is the main difference between organisms that share many characteristics and organisms that do not
Find the least common multiple of x2 – 2x – 15 and x2 + 2x – 3. (x + 5)(x + 3)(x + 1) (x – 5)(x + 1)(x + 3) (x – 5)(x + 3)(x – 1) (x + 3)(x – 1)(x + 5) z va
Which is true of ultraviolet rays? They help your body produce vitamin D.They are visible to the naked eye.They provide the energy that makes your morning toast
What is the meaning of (temporland)?
What are disadvantages and advantages of parallel circuits