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 role did constantine i play in the spread of christianity in europe? a. he was the first roman emperor who also served as the roman catholic pope. b. he
What occurred during the columbian exchange? a.people from africa were brought to europe. b.millions of american indians died of disease. c.horses and cattle
What feeling is conveyed in both “Ambush” and “Facing It”?
2) Help with this plzz If yhu dont ion tripping
A segment of DNA that codes for the ability to make one type of protein molecule is known as a(n)____________________.
the winners, samuel and __, accepted the award graciously. she or her?
Of all of the unknowns, which compounds can be separated from the unknown mixture by extraction with naoh solution?
Which statement about governing Israel is not true? There are many different political parties. Israel has a democratic form of government. Government leaders f
Write a function rule please. :)
plz help me with number 4 and 5 this is due tomorrow you don't have to show the work.