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

36.36 divided by 3 long division step by step *Middle school level
What issues can food allergies cause? Digestive problems Hives Swollen airways None of the above All the above
how are unicellular and multicellular organisms alike
How did the incas farm.
Why did the constitution provide protection for political protest.
Although i suspected i was wrong, l refused to admit my mistake simple compound complex​
I’ll vote Brainly if you get this right. Match the following terms to their definitions below - A conclusion that is drawn based on the observations that have
the population rush into california in 1848 was a result of
Question is in the pic please help
e. Why should we help the people in trouble?​