At Westonci.ca, we connect you with the answers you need, thanks to our active and informed community. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

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;

   }

 }

}