WAP to find the sum of cubes of the first 10 number 1³+2³+....10³
Answers
Answered by
0
Answer:
3025
Explanation:
Answered by
0
Answer:
The RESULT will look like this:
The answer is 3025
Explanation:
class cube
{
public static void main()
{
int a= 1*1*1;
int b= 2*2*2;
int c= 3*3*3;
int d= 4*4*4;
int e= 5*5*5;
int f= 6*6*6;
int g= 7*7*7;
int h= 8*8*8;
int i= 9*9*9;
int j= 10*10*10;
System.out.println("The answer is "+(a+b+c+d+e+f+g+h+i+j));
}
}
P.S. - I have just written in like this to make it look neater.
Similar questions
Social Sciences,
7 days ago
Math,
7 days ago
Physics,
15 days ago
Biology,
8 months ago
English,
8 months ago