Computer Science, asked by sarita7269, 6 months ago

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 amohammed511993
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 gaytlkou
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