/* * Googleplex.java * * Version: * $Id: Googleplex.java,v 1.3 2005/01/20 04:43:51 gicode Exp $ * * Revisions: * $Log: Googleplex.java,v $ * Revision 1.3 2005/01/20 04:43:51 gicode * *** empty log message *** * * */ /** * Prints out the number 1 Googleplex If started on a 4Ghz machine capable * of outputing 1 character per clock cycle (Extreemly optomistic) this program * will take 10^87 years to complete successfully. * * @author Rusty Burchfield */ public class Googleplex { /** * Prints out the number 1 Googleplex. If started on a 4Ghz machine capable * of outputing 1 character per clock cycle (Extreemly optomistic) this program * will take 10^87 years to complete successfully. * * @param args */ public static void main(String[] args) { System.out.print(1); for (long a = 0; a < 1000000000; a++) { for (long b = 0; b < 1000000000; b++) { for (long c = 0; c < 1000000000; c++) { for (long d = 0; d < 1000000000; d++) { for (long e = 0; e < 1000000000; e++) { for (long f = 0; f < 1000000000; f++) { for (long g = 0; g < 1000000000; g++) { for (long h = 0; h < 1000000000; h++) { for (long i = 0; i < 1000000000; i++) { for (long j = 0; j < 1000000000; j++) { for (long k = 0; k < 1000000000; k++) { for (long l = 0; l < 10; l++) { System.out.print(0); } } } } } } } } } } } } } } //Googleplex