struct Complex { float Real; float Imag; } void Swap( ref int a, ref int b ) { int tmp; tmp = a; a = b; b = tmp; return; } Complex Add( Complex a, Complex b ) { Complex retval; retval = new Complex(); retval.Real = a.Real + b.Real; retval.Imag = a.Imag + b.Imag; return retval; } int Max( int a, int b ) { if ( a > b ) { return a; } return b; } void Main() { float Square( float val ) { return val ** 2.0; } float num; num = 6.480740; print_float( num ); print_str( " squared is " ); print_float( Square( num ) ); return; }