i want the answer in java
please anyone give me the answer it's urgent
Attachments:
Answers
Answered by
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
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
Math,
3 months ago
Environmental Sciences,
3 months ago
Computer Science,
7 months ago
Math,
11 months ago