Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int a = Console.Read();
- int b = a / 2;
- Console.WriteLine(b);
- }
- }
- .method private hidebysig static void Main() cil managed
- {
- .entrypoint
- // Code size 19 (0x13)
- .maxstack 2
- .locals init (int32 V_0,
- int32 V_1)
- IL_0000: nop
- IL_0001: call int32 [mscorlib]System.Console::Read()
- IL_0006: stloc.0
- IL_0007: ldloc.0
- IL_0008: ldc.i4.2
- IL_0009: div
- IL_000a: stloc.1
- IL_000b: ldloc.1
- IL_000c: call void [mscorlib]System.Console::WriteLine(int32)
- IL_0011: nop
- IL_0012: ret
- } // end of method Program::Main
- ----------------------------------------------------
- using System;
- class Program
- {
- static void Main()
- {
- int a = Console.Read();
- int b = a >> 1;
- Console.WriteLine(b);
- }
- }
- .method private hidebysig static void Main() cil managed
- {
- .entrypoint
- // Code size 19 (0x13)
- .maxstack 2
- .locals init (int32 V_0,
- int32 V_1)
- IL_0000: nop
- IL_0001: call int32 [mscorlib]System.Console::Read()
- IL_0006: stloc.0
- IL_0007: ldloc.0
- IL_0008: ldc.i4.1
- IL_0009: shr
- IL_000a: stloc.1
- IL_000b: ldloc.1
- IL_000c: call void [mscorlib]System.Console::WriteLine(int32)
- IL_0011: nop
- IL_0012: ret
- } // end of method Program::Main
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement