Morning Coffee

Version 1

    #include <stdio.h>

     

    void main(void)

    {

    Cup * cup = get_cup();

    If (get_coffee(cup)== null)

    {

    printf(“%&$&%&$ world!”);

    exit(1);

    }

    else

    while (cup->is_empty() != 0)

    take_a_sip(cup);

     

    printf(“Hello world!”);

    }