write a program with variable description
write a program to print the sum of given series (1)3 + (2)3 + (3)3 ............(10)3
I want the program in java
for example
Attachments:
Answers
Answered by
0
Explanation:
public static void main(String[] args) {
int n = 100;
int sum = 0;
for (int i = 1; i <= n; i++) {
sum = sum + 3i;
System.out.println(sum);
}
}
Answered by
0
Answer:
VARIABLE DESCRIPTION
VARIABLE NAME : n and I
VARIABLE TYPE :int
Purpose : n for storing a value
I for loop
Explanation:
make it in a tabular form
Attachments:
Similar questions
Math,
4 months ago
Geography,
4 months ago
Social Sciences,
8 months ago
Political Science,
8 months ago
Math,
1 year ago