Assignment and reading of variables, fundamental operations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
350 B

using System;
class Program {
static void Main(string[] args) {
const int a = 2, b = 3;
Console.WriteLine(a + b);
Console.WriteLine(a - b);
Console.WriteLine(a * b);
const string s1 = "foo", s2 = "bar";
Console.WriteLine(s1);
Console.WriteLine(s2);
Console.WriteLine(s1 + s2);
Console.WriteLine(s2 + s1);
}
}