10. Program
10. How to Print this series ? 15, 29, 56, 108, 208, 400.....N
import java.util.Scanner; class Series1 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Enter the Number till you want Series"); int n = sc.nextInt(); int no = 15, a =1; while(no <= n) { System.out.print(no+", "); no = ((no * 2)-a); a = a+a; } } }