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

At 5 a. M. , the temperature at an airport was −9. 4°F. Six hours later, the temperature was 2. 8°F. Which expression represents the total temperature change ov
How do you know if you are developing a psychosis?.
Under what circumstances may a president be sued
Reset a Fill in the blanks with the right option. Esteban and Maria to country. Do you want to come too? Reset button will be completing this assess a tour to t
subtract x^2-6x+4 from 2x^2+4x-8 ( )-( ) step 1: step 2: step 3:
PLS PLS PLS HELP ME...​
ALL MY POINTS HERE PLS HELP I WILL GIVE BRAINLEST ANSWER TO FIRST WHO WILL ANSWER PLS HELP
Explain why adapting your perspective towards stressful situation is in important in order to minimise its negative effects​
Pls help me 20 POINTS
is magnesium oxide a metal​