Math, asked by aditya45676, 10 months ago

Write an HTML code to represent the sequential program of the following series upto n terms:
0,28, 234........

Answers

Answered by Anonymous
8

<HTML>

<HEAD>

<TITLE>

Series

</TITLE>

</HEAD>

<BODY bgcolor ="azure" textcolor="black"><BR>

import java.util.*;<BR>

public class Series<BR>

{<BR>

public static void main(String args[])<BR>

{<BR>

Scanner in =new Scanner(System.in);<BR>

int i,a,n;<BR>

System.out.println("Enter the value of n");<BR>

n=in.nextInt();<BR>

for(i=1;i<=n;i++)<BR>

{<BR>

a=Math.pow(i,5) - Math.pow(i,2);<BR>

//since the series is subtraction of the multiplication of the same number with itself 5 times by its square<BR>

System.out.println("The series is="+a);<BR>

}<BR>

}<BR>

}<BR>

</BODY>

</HTML>

Answered by Anonymous
1

Answer:

Yes

Step-by-step explanation:

Refer the above attachment.

Attachments:
Similar questions