Get reliable answers to your questions at Westonci.ca, where our knowledgeable community is always ready to help. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

JAVA

Write a program to display the first ten terms of the series:
5, 10, 17, --------------​


Sagot :

tonb

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;

   }

 }

}