public static void Main()
int bigE = FaceValue( x & 0x000000FF, 6 ) + FaceValue( x >> 8 & 0x000000FF, 4) + FaceValue( x >> 16 & 0x000000FF, 2 ) + FaceValue ( x >> 24 & 0x000000FF, 0 );
int littleE = FaceValue( x & 0x000000FF, 0 ) + FaceValue( x >> 8 & 0x000000FF, 2) + FaceValue( x >> 16 & 0x000000FF, 4 ) + FaceValue ( x >> 24 & 0x000000FF, 6 );
Console.WriteLine(String.Format("Big E Number is {0}, Little E Number is {1}", bigE, littleE) );
public static int FaceValue( int of, int powTen ) {
return (of == 0) ? of : ( ( ( of >> 4 ) * 10 ) + ( of & 0xF ) ) * (int) Math.Pow(10, powTen );