using System;
class Program
{
static void Main()
{
int x = 5;
Console.WriteLine(x == 5);
Console.WriteLine(x != 5);
Console.WriteLine(x > 5);
Console.WriteLine(x < 5);
Console.WriteLine(x >= 5);
Console.WriteLine(x <= 5);
Console.WriteLine(x + 5);
Console.WriteLine(x - 5);
Console.WriteLine(x * 5);
Console.WriteLine(x % 5);
Console.WriteLine(x / 5);
Console.WriteLine(x += 5);
Console.WriteLine(x -= 5);
Console.WriteLine(x *= 5);
Console.WriteLine(x %= 5);
Console.WriteLine(x /= 5);
Console.Read();
}
}
|
Class Program
Private Shared Sub Main()
Dim x As Integer = 5
Console.WriteLine(x = 5)
Console.WriteLine(x <> 5)
Console.WriteLine(x > 5)
Console.WriteLine(x < 5)
Console.WriteLine(x >= 5)
Console.WriteLine(x <= 5)
Console.WriteLine(x + 5)
Console.WriteLine(x - 5)
Console.WriteLine(x * 5)
Console.WriteLine(x Mod 5)
Console.WriteLine(x / 5)
Console.WriteLine(x += 5)
Console.WriteLine(x -= 5)
Console.WriteLine(x *= 5)
Console.WriteLine(x = x Mod 5)
Console.WriteLine(x /= 5)
Console.Read()
End Sub
End Class
|