* Initializing Sth Deranged
* Subdivision The Deranged World , sub-subdivision Jesse's Crazy Ideas
*
* Test.c
*
*
*
*
*/
#include
#include (stdio.h)
int main(void)
{
/*Declare and initialize variables*/
char user;
int admist;
int day, month, year;
/*Acquiring basic information from user*/
printf("Welcome to The Deranged World, please verify identity\n");
printf("Please type G (Guest) or A (Admin) after the semicolen:");
scanf("%c", &user);
/*Applying conditions to identity*/
if (user == 71)
printf("Hello Guest!\n");
else if (user == 65)
{
printf("Hello Admin! Choose you entry personality\n");
printf("Please type 1 (Jesse =P) or 2 (Rach-Nat =S) after the semicolen:");
scanf("%d", &admist);
}
else
printf("Err.... type only A or G, bobo!\n");
/*Applying conditions to determine Admin*/
if (admist == 1)
{
printf("Please authenticate, Jesse\n");
printf("What is Jesse's ORD day? (DD MM YY):");
scanf("%d %d %d", &day, &month, &year);
if ((day==15)&&(month==03)&&(year==9))
printf("Successful autentification, welcome back Jesse!\n");
else
printf("Eh.... you're not Jesse. Bye Bye imposter\n");
}
if (admist == 2)
{
printf("Please authenticate, Rachael\n");
printf("What is your date of actualization? (DD MM YY):");
scanf("%d %d %d", &day, &month, &year);
if ((day==21)&&(month==12)&&(year==9))
printf("Successful autentification, welcome back Rachael!\n");
else
printf("If you can't even fake a fake identity, TSK!!!!\n");
}
/*Exit program*/
return 0;
}
/*Ten Thouand LOLs*/
No comments:
Post a Comment