English, asked by dfr56, 10 months ago

Write a program to display the series upto 10 terms:
2,5,10.................................

Answers

Answered by Anonymous
16

import java.util.*;

public class Series

{

public static void main(String args[])

{

Scanner in = new Scanner(System.in);

int a,b;

for(a=1;a<=10;a++)

{

b=a*a+1;

System.out.println("Display the series"+a);

}

}

}

Similar questions