OdeToCode IC Logo

A Message For You

Friday, December 30, 2005

Just figure out what the following program writes to the console...

using System;
using System.Collections.Generic;
using _ = System.Text.StringBuilder;
using __ = System.Console;
using ___ = System.Collections.Generic.IEnumerable<int?>;

class wtf
{
    
static void Main()
    {
        
_ _ = new _().Append(_2());
        
int i= 0; foreach(int? x in _1())
        {
            _[(
int)((x ?? i) < 0 ? i ^ 2 % 10 : x)] = _2()[i++];
        }
        
__.WriteLine(_.ToString());
    }

    
static char[] _2()
    {
        
return
        (  
          
"H"      +      "Y"
                    +
            
"E"     +     "N"
                    +
            
"A"    +    " "
                    +
              
"P"   +   "A"
                    +
              
"W"  +  " "
                    +
                
"P" + "R"
                    +
                
"E"+"Y"
        
                 ).ToCharArray();                
    }    
    
static ___ _1()
    {
        
int?[] _ = {  
                     0, 10, 11, 6,  1, 5, 3,
                    
/*~~~~~~~~~~~~~~~~~~~*/
                     12,  8,  9, 2, 13, 7, 4
                    };

      
foreach (int? x in _)
            
yield
                    return
       null
              ??
              x;
    }
}

Who is gonna port this to VB?