11. Program
How to Print this series ? 21, 32, 54, 87, 131, 186......N
import java.util.Scanner; class Series2 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the Series till you want n : "); int n = sc.nextInt(); int no = 21, i=1; while(no <= n) { System.out.print(no+", "); no = (no+(11*i)); i++; } } }