Write a program to display the series upto 10 terms:
2,5,10.................................
Answers
Answered by
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
Environmental Sciences,
5 months ago
Math,
5 months ago
Math,
5 months ago
Physics,
10 months ago
Hindi,
10 months ago