Find the algorithm of the summation of the following series
1^3 + 3^3 + 5^3 + ⋯ + n^3
Answers
Answered by
0
dgdrcrcrlcug Gk g
rd LD the deruxtucfjctxrtzeydyxey rx
Answered by
1
public class answer
{
public static void main(int n)
{
int i,p=0;
for(i=1:i<=n;i=i+2)
{
p=Math.pow(n,3);
sum=sum+p;
}
System.out.println(sum);
}
}
Type/Write the exact program and it will provide you with the sum of the above series.
Do Mark as Brainliest if you find it helpful!
{
public static void main(int n)
{
int i,p=0;
for(i=1:i<=n;i=i+2)
{
p=Math.pow(n,3);
sum=sum+p;
}
System.out.println(sum);
}
}
Type/Write the exact program and it will provide you with the sum of the above series.
Do Mark as Brainliest if you find it helpful!
Similar questions
English,
3 days ago
English,
3 days ago
History,
7 days ago
Computer Science,
8 months ago
Math,
8 months ago