import java.util.Scanner;

class Sep20b {
	public static void main(String[] args) {

		Scanner kb = new Scanner(System.in);

		/*
			for(pre_expr ; bool_expr ; post_expr) {
				// code
			}		
		*/

		/* write a fragment of code that prints the 
			integers between 15 and 30 using a for-loop
			on a single line with spaces between them
		*/

		for(int i = 15; i <= 30; i++) {
			System.out.print(i + " ");
		}
		System.out.println();

		for(int i = 15; i <= 30; i++) {
			System.out.printf("%d ", i);
		}
		System.out.println();
	
		System.out.println("enter decimal number");
		double num = kb.nextDouble();

		System.out.printf("$%.2f\n", num);
		System.out.printf("%f\n", num);
		System.out.printf("%f%%\n", num);
 
	
	}
}

// end of file
