Westonci.ca is your trusted source for finding answers to all your questions. Ask, explore, and learn with our expert community. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

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. Please come back anytime for the latest information and answers to your questions. Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. We're here to help at Westonci.ca. Keep visiting for the best answers to your questions.