-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestProgram.cs
66 lines (52 loc) · 1.17 KB
/
TestProgram.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using System;
using System.Text;
using System.Diagnostics;
class TestProgram
{
// Global Comment
double? globalDecsign = 29.2000;
float globalDeclare;
void Main(string[] args)
{
// Local Comment
var localDecsign = "(Hello // World) (/* Test Comment */)"; // Inline Comment
string? localDeclare;
localDeclare = null;
if (1 > 2)
return;
if (5 >= 6) { }
if (false) { }
else if (true) { }
else { }
while (false) { }
do { }
while (false);
int i = 0;
for (Print(); i < 10; i += 5)
Print();
switch (i)
{
case 0:
{ }
break;
case 1:
{ }
break;
default:
{ }
break;
}
/*
Multi Comment Code:
for (int i = 0; i < 10; i += 5) i++;
*/
}
double PiValue()
{
return 3.14; /* Another Inline Comment With Code: for (int i = 0; i < 10; i += 5) i++; */
}
void Print()
{
Console.WriteLine("For Loop Started");
}
}