Write a program to display the series upto n terms:
0,12,72.......................
Answers
Answered by
20
//Using java to write the program
//Using utilization process to shorten it
import java.util.*;
public class Series
{
public static void main(String args[]);
{
//scanner class is not necessary here because, there is no such case of taking input
int a, i;
//We should use for loop rather than writing the program again and again as it is repeatative
for(i=1;i<=n;i++)
{
a= Math.pow(i,4)- Math.pow(i,2);
System.out.println("The series is"+a);
//seems according to the program we are multiplying the number four times with itself and subtracting by its square
}
}
}
Answered by
4
Answer:
solutions above attached ....
Attachments:
Similar questions
Math,
5 months ago
Physics,
5 months ago
World Languages,
5 months ago
Biology,
11 months ago
Math,
1 year ago