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

How many grams of potassium nitrate are required to produce 5.00 g of potassium nitrate?
Weak acids: are always more soluble than strong acids have a higher degree of dissociation than do strong acids only ionize a fraction of their molecules always
The circumference of the Earth is approximately 25,000 miles. Find the diameter of the Earth.
________ plays a critical role as a neurotransmitter that stimulates skeletal muscles to contract.
what did congress create to regulate the stock market
math is soooo hard. please help.
The perimeter of a rectangular garden is 52 feet the length of the garden is 4 feet less than twice the width what is the width of the garden
what is 13 2/6+10 5/6 in fraction form
what're all the numbers divisible by 2 and 6?
The Act of Union in 1707 united a. England and Ireland. b. the House of Stuart with the House of Hanover. c. England and Scotland. d. France an