Created
October 31, 2013 20:22
-
-
Save Earlz/7256415 to your computer and use it in GitHub Desktop.
Run on .Net 2.0 or 3.5. If you think the result depends on the input you give it, then you haven't tried running it
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace ConsoleApplication4 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
CheckNull(null); | |
} | |
static bool CheckNull(string s) | |
{ | |
start: | |
bool tmp = Console.ReadLine() == ""; | |
if (tmp) goto end; | |
bool tmp2 = true; | |
tmp = String.IsNullOrEmpty(s); | |
if (tmp2 == tmp) | |
{ | |
goto start; | |
} | |
else | |
{ | |
goto start; | |
} | |
end: | |
goto start; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment