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
Math,
19 days ago
Physics,
19 days ago
History,
1 month ago
Computer Science,
9 months ago
Math,
9 months ago