c sharp doc code example
Example 1: c#
/* A C# (C-sharp ex.) */
using System;
namespace helloWorld
{
class Program
{
static void Main()
{
Console.WriteLine("What's your age?")
string age = Console.ReadLine()
Console.WriteLine($"You are {age} years old!")
}
}
}
Example 2: c#
using System;
namespace ExampleApp {
class Example {
static void Main(string[] args) {
Console.WriteLine("Hello, world!");
}
}
}