c sharp % 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#
double num = //some number you have
double num2 = //some another number you have
Console.WriteLine(num + num2);