Write a program to display the following series upto 10 terms:
10,19,28.......................................
Answers
Answered by
11
import java.util.*;
public class Series
{
public static void main(String args[])
{
int x=9,y;
//using for loop
for(y=1;y<=10;y++)
{
x=x*y;
System.out.println("Display the series"+x);
}
}
}
Answered by
14
import java.util.*;
public class Series
{
public static void main(String args[]);
{
Scanner in =new Scanner(System.in);
int a=9,b;
for(b=1;b<=10;b++)
{
a=a*b;
System.out.println("The series is"+a);
}
}
}
Similar questions