46
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
// Logical NOT, !
8
bool result = true;
9
if (!result)
10
{
11
Console.WriteLine("result is not true");
12
}
13
else
14
{
15
Console.WriteLine("result is not false");
16
}
17
18
// AND, &&
19
int m = 9;
20
int n = 7;
21
int p = 5;
22
if (m >= n && m >= p)
23
{
24
Console.WriteLine("Nothing is larger than m.");
Cached Result