suzen123
suzen123 suzen123
  • 04-01-2021
  • Computers and Technology
contestada

JAVA
Write a program to find the sum of the given series:
S = 1 + (1*2) + (1*2*3) + --------- to 10 terms.

plz help....​

Respuesta :

Cytokine
Cytokine Cytokine
  • 04-01-2021

public class MyClass {

   public static void main(String args[]) {

     int x = 1;

     int total = 0;

     for (int i = 1; i <= 10; i++){

         x *= i;

         total += x;

     }

     System.out.println(total);

   }

}

This program finds the sum of that series to the tenth term, the sum is: 4037913. I hope this helps.

Answer Link

Otras preguntas

PLZ HELP ME ASAP FOR 50 POINTS AND BRAINLIEST!!!
The price of a house is originally listed at $220.000 The owners are having a hard time selling it and decide to reduce the price to $156,200. What is the perce
Given. That 2x+1=32, find the value of x
2/5y + 1/2y = ??? help please.
If a penceil has 25 grams and a apple has 75 grams more then the penceil how many grams is the apple
A. 92% B. 29% C. 23% D. 100% Branliest to correct answer explain how you solved please
Plz help me with this
If the parent function is f(x)=l xl, tell how the function g(x) = -l x+2 l -3 compares. CHECK ALL THAT APPLY a Vertical shift down 3 units b Reflection over t
A constant applied force Fp of 11.0 N pushes a box with a mass=7 kg a distance x=15.0 m across a level floor. The coefficient of kinetic friction between the bo
Identify the absolute value of: |4| A. - 2 B. - 4 C. 2 D. 4