Math, asked by sghshs, 11 months ago

Write a program to display the series upto n terms:
0,12,72.......................

Answers

Answered by Anonymous
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 Martin84
4

Answer:

solutions above attached ....

Attachments:
Similar questions