public class KboatSeriesSum
{
public static void main(String args[]) {
int sum = 0;
for (int i = 1; i <= 10; i++) {
int p = 1;
for (int j = 1; j <= i; j++)
p *= j;
sum += p;
}
System.out.println("Sum = " + sum);
}
}
Could you write the variable description for this program
Answers
Answered by
0
Answer:
Sum=10
Explanation:
the result of the program is given above
Similar questions
Math,
10 days ago
CBSE BOARD XII,
10 days ago
English,
21 days ago
Computer Science,
21 days ago
Math,
9 months ago
English,
9 months ago