Computer Science, asked by DipeshGurung, 15 days ago

WAP to find the sum of cubes of the first 10 number 1³+2³+....10³​

Answers

Answered by 10522014
0

Answer:

3025

Explanation:

 {1}^{3}  +  {2}^{3}  +  { 3}^{3}  +  {4}^{3}  +  {5}^{3}  +  {6}^{3}  +  {7}^{3}  +  {8}^{3}  +  {9}^{3}  +  {10}^{3}

 = 1 + 8 + 27 + 64 + 125 + 216 + 343 + 512 + 729 + 1000

 = 3025

Answered by 05aarya
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