Descript

Hello friends, welcome to The Deranged World. This domain is primarily a personal introspection of thoughts, feelings and activities. Some of them are funny, some slightly emotional, some exceedingly intellectual, and others completely nonsensical in nature. But nevertheless, they all reflect a truthful element of myself then. In addition, you may check out the Project RN series located at 'Interchange'. Do leave a comment as an when you wish, I'll be more than glad to reply them.

28 February 2010

This programme actually works on sunfire.........

/**
* Initializing Sth Deranged
* Subdivision The Deranged World , sub-subdivision Jesse's Crazy Ideas
*
* Test.c
*
*
*
*
*/

#include (math.h)
#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: