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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class DotNetPad
{
    public static void Main(string[] args)
    {
        String ans1;
        String ans2;
        int num1;
        int num2;

        Console.Write("Enter first number ");
        ans1 = Console.ReadLine();

        Console.Write("Enter second number ");
        ans2 = Console.ReadLine();

        num1 = System.Convert.ToInt32(ans1);
        num2 = System.Convert.ToInt32(ans2);

        Console.WriteLine("========================");
        int addNums = num1 + num2;
        Console.WriteLine("Addition\n" + addNums);
        



        Console.WriteLine("========================");



        
    }
}

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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
//  Microsoft (R) .NET Framework IL Disassembler.  Version 4.0.30319.1
//  Copyright (c) Microsoft Corporation.  All rights reserved.



// Metadata version: v4.0.30319
.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  .ver 4:0:0:0
}
.assembly Gobiner.CSharpPad.Eval.Evil741996706
{
  .custom instance void [mscorlib]System.Runtime.CompilerServices.CompilationRelaxationsAttribute::.ctor(int32) = ( 01 00 08 00 00 00 00 00 ) 
  .custom instance void [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::.ctor() = ( 01 00 01 00 54 02 16 57 72 61 70 4E 6F 6E 45 78   // ....T..WrapNonEx
                                                                                                             63 65 70 74 69 6F 6E 54 68 72 6F 77 73 01 )       // ceptionThrows.
  .hash algorithm 0x00008004
  .ver 0:0:0:0
}
.module Gobiner.CSharpPad.Eval.Evil741996706.exe
// MVID: {19E8D6C7-48CA-4CD2-AFEE-F9F94BAF38A6}
.imagebase 0x00400000
.file alignment 0x00000200
.stackreserve 0x00100000
.subsystem 0x0003       // WINDOWS_CUI
.corflags 0x00000001    //  ILONLY
// Image base: 0x00000000000F0000


// =============== CLASS MEMBERS DECLARATION ===================

.class public auto ansi beforefieldinit DotNetPad
       extends [mscorlib]System.Object
{
  .method public hidebysig static void  Main(string[] args) cil managed
  {
    .entrypoint
    // 
    .maxstack  2
    .locals init (string V_0,
             string V_1,
             int32 V_2,
             int32 V_3,
             int32 V_4)
    IL_0000:  ldstr      "Enter first number "
    IL_0005:  call       void [mscorlib]System.Console::Write(string)
    IL_000a:  call       string [mscorlib]System.Console::ReadLine()
    IL_000f:  stloc.0
    IL_0010:  ldstr      "Enter second number "
    IL_0015:  call       void [mscorlib]System.Console::Write(string)
    IL_001a:  call       string [mscorlib]System.Console::ReadLine()
    IL_001f:  stloc.1
    IL_0020:  ldloc.0
    IL_0021:  call       int32 [mscorlib]System.Convert::ToInt32(string)
    IL_0026:  stloc.2
    IL_0027:  ldloc.1
    IL_0028:  call       int32 [mscorlib]System.Convert::ToInt32(string)
    IL_002d:  stloc.3
    IL_002e:  ldstr      "========================"
    IL_0033:  call       void [mscorlib]System.Console::WriteLine(string)
    IL_0038:  ldloc.2
    IL_0039:  ldloc.3
    IL_003a:  add
    IL_003b:  stloc.s    V_4
    IL_003d:  ldstr      "Addition\n"
    IL_0042:  ldloc.s    V_4
    IL_0044:  box        [mscorlib]System.Int32
    IL_0049:  call       string [mscorlib]System.String::Concat(object,
                                                                object)
    IL_004e:  call       void [mscorlib]System.Console::WriteLine(string)
    IL_0053:  ldstr      "========================"
    IL_0058:  call       void [mscorlib]System.Console::WriteLine(string)
    IL_005d:  ret
  } // end of method DotNetPad::Main

  .method public hidebysig specialname rtspecialname 
          instance void  .ctor() cil managed
  {
    // 
    .maxstack  8
    IL_0000:  ldarg.0
    IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
    IL_0006:  ret
  } // end of method DotNetPad::.ctor

} // end of class DotNetPad


// =============================================================

// 
1
2
3
4
Enter first number Enter second number ========================
Addition
0
========================