    #define numberofButtons 3

    #include <stdio.h>
    #include<time.h>

    void wait(double x)
    {
        clock_t begin, end;
        double time_spent, limit=1000*60*x;
        begin = clock();
        while(time_spent<= limit)
        {
            end = clock();
            time_spent = (double)(end - begin) / CLOCKS_PER_SEC;
        }
    }


    int main(void)
    {
        char c;
        while((c = getchar())!='e')
        {
            if (c == 'a')
            {
                printf("I am in a! Come after 15 min!\n");
                wait(15);
                printf("WOW! How could you pass 15 min!!\n");
            }
            if (c == 'b')
            {
                printf("I am in b! Come after 15 min!\n");
                wait(15);
                printf("WOW! How could you pass 15 min!!\n");
            }
            if (c == 'c')
            {
                printf("I am in c! Come after 15 min!\n");
                wait(15);
                printf("WOW! How could you pass 15 min!!\n");
            }
        }
    }
