English, asked by vbbb8, 1 year ago

Write a program to display the series upto 10 terms:
14,29,44.........................................

Answers

Answered by Anonymous
15

import java.util.*;

public class Series

{

public static void main(String args[])

{

Scanner in =new Scanner(System.in);

int a,b=15;

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

{

b=b*a-1;

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

}

}

}

Answered by Anonymous
16

import java.util.*;

public class Series

{

public static void main(String args[])

{

int a,b=15;

//using for loop

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

{

b=a*b-1;

System.ou.println("The series is "+b);

}

}

}

Similar questions