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 82.4% written as a decimal? A. 8.24 B. 824 C. 82.4 D. 0.824
The Concordat of Worms confirmed the spiritual power of the ________. a. bishop b. emperor c. king d. pope
If cells are placed in a hypertonic solution containing a solute to which the membrane is impermeable what could happen?
Could someone plz help me :(
All organisms have DNA, which differs only in the number and order of each type of nucleotide. This suggests that all organisms have
Imogen bought i number of invitations to send out for her party. After she sent out 19, she was left with 11. What is the value of i?
How does the process of hearing differ between a person who is awake and a person who is asleep?
What is the definition magnetism
Emily had 75 buttons. She gave 15 buttons to Jake. What percent of the buttons did Emily give to Jake? A) 2% B) 10% C) 15% D) 20%
What parts of the brain interpret pain impulses?