Welcome to Westonci.ca, the Q&A platform where your questions are met with detailed answers from experienced experts. Experience the ease of finding reliable answers to your questions from a vast community of knowledgeable 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;

   }

 }

}

We appreciate your time on our site. Don't hesitate to return whenever you have more questions or need further clarification. Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. Thank you for using Westonci.ca. Come back for more in-depth answers to all your queries.