View Single Post
Old 18-03-2004, 23:09   #7
anx721
Senior Member
 
L'Avatar di anx721
 
Iscritto dal: Oct 2002
Cittā: Roma
Messaggi: 1502
Codice PHP:
int n 2;
        
//2^n
    
int n_2 = (int)Math.pow(2.0n);
        
//2^2^n
    
int n_2_2 = (int)Math.pow(2.0n_2);
    
int temp 1;

    for(
int i 0n_2;  i++){
        for (
int j 0<  n_2_2 temp){
            for(
int k 0<  temp k++){
                if(((
temp) % 2) == 0)
                    
System.out.print("0");
                else
                    
System.out.print("1");    
            }        
        }
        
temp temp 2;
        
System.out.println();
    } 
Se n > 2 č giā difficile visualizzare il risultato...
__________________
Sun Certified Java Programmer
EUCIP Core Level Certified

European Certification of Informatics Professionals
anx721 č offline   Rispondi citando il messaggio o parte di esso