Tuesday, March 22, 2005

Lab Program

#include"mandayan.h" //Lab In-charge

void checkAapu( )
{
    if(mandayan==absent)
    {
      printf("Great escape!!");
      exit(0);

    }
    else
    {
      printf("Mandayan Alert!!!");

    }
}

void main( )
{
    char weekend_status[20];

    step1 :
    printf("Weekend enna pannina? : ");
    scanf("%s",weekend_status);

    checkAapu( );

    if(weekend_status=="Naasama Poachu")
    {
      printf("Maganey, nee gaali...lab-la kuththa poraango!");
      return;

    }

    if(weekend_status=="Padichu kizhichuttaen)
    {
      printf("Invalid input!! Poi sollatha da vennai!!");
      goto step1;

    }
}

Input
What did you do this weekend? : Naasama Poachu

Output
Mandayan Alert!!!
Maganey, nee gaali...lab-la kuththa poraango!

Update : Mandayan absent, great escape!!

Labels: ,


Old Commenting System: