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

Which region in the United States is most likely to have a population of predominantly Swedish, Norwegian, Danish, German, and Polish backgrounds?
give examples of roman ideas in language and architecture that exist today
a fair number cube labeld 1,2,3,4,5,6 is rolled a hundred times. about how many times could you expect to roll a three?
cuanto pesa un marcador
a student spends $48 on school supplies at a store where the sales tax is 7% what is the total cost of the supplies
Can you tell me What is 3/5 of 65
what does attrition mean?
List two issues in sport that can impede nation building.
Which aspect of the government does the US have in common with the roman republic
Which type of plate boundary is the San Andreas fault? divergent boundary transform boundary convergent boundary slip-slide boundary focus point boundary