multipivegrrw code example
Example: multipivegrrw
using System.Data;
using System;
namespace Epic_Project
{
class Program
{
static void Main(string[] args)
{
Console.Title = "Epic Gamer Moment Lol";
Console.WriteLine("Hello! What is your name?");
String userName = Console.ReadLine();
Console.Write("Nice to meet you " + userName + "!" );
Console.WriteLine("Now, input the correct password.");
String username = null; // null; is basically no, ya
username = Console.ReadLine();
if (username == "F") // CUSTOMIZE THE USERNAME
{
Console.WriteLine("Proceed");
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("That was incorrect");
Console.ReadKey();
Environment.Exit(0);
}
Console.WriteLine("Double Check; What is password 2: ");
String No02 = null;
No02 = Console.ReadLine();
if (No02 == "F") // CUSTOMIZE THE PASSWORD
{
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine("Great!");
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Wrong password");
Console.ReadKey();
Environment.Exit(0);
}
Console.WriteLine("Wow! You have got everything correct so far! G00d. Now, to verify your age");
Console.WriteLine("Input your age here: "); // why did I do this? I HAVE NO FREAKIN IDEA
int age;
age = Convert.ToInt32( Console.ReadLine() );
if (age < 10)
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Your not old enough to continue");
Console.ReadKey();
Environment.Exit(0);
}
else
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("You are old enough to pass! (Now press any key to proceed)");
Console.ReadKey(); // Wait for a sec for the person to see
}
Console.WriteLine("Now that you have passed the test, are you sure you want to continue? (Answer Y or N)");
string Y = Console.ReadLine();
if (Y == "Y")
{
Console.WriteLine("Ok!");
}
else if (Y == "N")
{
Console.WriteLine("Goodbye.");
Console.ReadLine(); // Wait for a sec for the person to see
Environment.Exit(0); // close the console
}
else
{
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Error");
Console.ReadLine(); // Wait for a sec for the person to see or type something
Environment.Exit(0);