Tuesday, September 20, 2011

Hey peeps

I haven't posted in a bit so here is a random C# script. =D
Hope it isn't complete fail.
If you have any comments tweet me @piano22RBLX (no hate please.)

using System;
class Random;
{
static void Main
{
string pass
Console.Write("Welcome to the system");
Console.WriteLine("Please input your username.");
string user = Console.ReadLine();
if user == "Piano22";
{
Console.WriteLine("Insert passcode");
string pass = Console.ReadLine();
if pass == "625882";
{
Console.WriteLine("Correct pass code.");
Console.WriteLine("Feel free to pat your self on the back. ^^");
Console.WriteLine("Bye.");
break;
}
else pass != "625882"
{
Console.WriteLine("Go eat your own right hand. =P");
break;
}
}
else username != "Piano22";
{
Console.WriteLine("Nope.");
Console.WriteLine("Try again later.");
break;
}
}
}

No comments:

Post a Comment