diff --git a/c#/helloworld.cs b/c#/helloworld.cs index 01b3829..8fd5ded 100644 --- a/c#/helloworld.cs +++ b/c#/helloworld.cs @@ -1 +1,9 @@ -Console.WriteLine("Hello World!"); \ No newline at end of file +//compiles and runs successfully +using System; + +public class GFG { + static public void Main() + { + Console.WriteLine("Hello World!"); + } +} diff --git a/c#/test.sh b/c#/test.sh new file mode 100755 index 0000000..5684a6e --- /dev/null +++ b/c#/test.sh @@ -0,0 +1,3 @@ +#!/bin/bash +mcs -out:helloworld helloworld.cs +mono helloworld \ No newline at end of file