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

You often insert your company's logo into a document you create.one way to make it easier for you to quickly insert it is to save the logo as a
Mission of awesomeness what is the definition of awesomeness
Can someone help me with this question (Beth and Lewis buy the same amount of fish pellets.If Beth feeds her goldfish 14fish pellets each day a container of pel
Theos mom bought an eight pack of juice boxes at the store for $4 find the unit rate for the juice boxes
If you push down on a table with a force of 5 newtons, what is the normal force pushing back to you
Name four reasons for keeping your money in a financial institution
what is 45 divided by two thirds
Which of the following is NOT a method that Sigmund Freud used while trying to understand his patients' unconscious processes? a. introspection b. case studies
A SPORTING GOODS COMPANY CAN SHIP 6 FOOTBALLS IN EACH CARTON. HOW MANY CARTONS ARE NEEDED TO SHIP 75 FOOTBALLS
Write 4/5, 1/5, and 3/8 as decimals. Round them to the thousandths place.