finitenumber - number*= i System.out.println(number...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.util.*; public class finitenumber { public static void main(String[] args)throws IOException { PrintWriter toFile = new PrintWriter(new FileWriter("numbers.txt")); double number = 10; for(double i = 1; i <= 100; i *= 10){
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: number *= i; System.out.println(number); } for(double i = 0; i < Math.pow(10, 100); i++){ toFile.println(number); System.out.print(number); number ++; } toFile.close(); } }...
View Full Document

This note was uploaded on 04/03/2010 for the course COMPSCI 600.107 taught by Professor Houlahan during the Spring '08 term at Johns Hopkins.

Ask a homework question - tutors are online