Computer Science, asked by sarita7269, 7 months ago

i want the answer in java


please anyone give me the answer it's urgent​

Attachments:

Answers

Answered by adityakumarjaiswal45
0

Answer:

/* Sum of Cubes of n Natural Numbers */

#include <stdio.h>

#include <math.h>

int main()

{

int Number, Sum = 0;

printf("\n Please Enter any positive integer \n");

scanf(" %d",&Number);

Sum = pow(((Number * (Number + 1))/ 2), 2);

printf("\n The Sum of Series for %d = %d ",Number, Sum);

}

I HOPE IT HELP YOU ✌️✌️✌️✌️

THANKS YOU

Answered by Ash34567
1

Answer:

#include <stdio.h>

#include <math.h>

int main()

{

int Number, Sum = 0;

printf("\n Please Enter any positive integer \n");

scanf(" %d",&Number);

Sum = pow(((Number * (Number + 1))/ 2), 2);

printf("\n The Sum of Series for %d = %d ",Number, Sum);

}

Similar questions