Difference between revisions of "Shell scripts"

From GeodesyLab
Jump to: navigation, search
Line 1: Line 1:
<source lang="csharp">
+
  <php>
// Hello World in Microsoft C# ("C-Sharp").
+
  $foo = 45;
 
+
  for ( $i = 1; $i < $foo; $i++ )
using System;
+
  {
 
+
    echo "$foo<br />\n";
class HelloWorld
+
    --$foo;
{
+
  }
    public static int Main(String[] args)
+
  </php>
    {
+
        Console.WriteLine("Hello, World!");
+
        return 0;
+
    }
+
}
+
</source>
+
  
 
<include src="http://www.ietf.org/rfc/rfc1945" />
 
<include src="http://www.ietf.org/rfc/rfc1945" />

Revision as of 04:50, 7 February 2008

  
  1. $foo = 45;
  2. for ( $i = 1; $i < $foo; $i++ )
  3. {
  4. echo "$foo<br />\n";
  5. --$foo;
  6. }

<include src="http://www.ietf.org/rfc/rfc1945" />