Public feed #888770

Unnamed

public text v1 · immutable
Raw Edit
·published 2008-02-02 11:45 UTC
rendered paste body
/* // C Programming 101 - Mrs Pudenda - for loop assignment #2 */
#include <stdio.h>

int main(void)
{
        int loop_value_which_designates_increasing_or_decreasing_depending_on_your_loop_type;

        /* C++ compatibile comments */
        /* // Initialize loop_value_which_designates_increasing_or_decreasing_depending_on_your_loop_type */
        loop_value_which_designates_increasing_or_decreasing_depending_on_your_loop_type = 0;

        /* // Set loop_value_which_designates_increasing_or_decreasing_depending_on_your_loop_type to the value, turn your cellphone off */
        loop_value_which_designates_increasing_or_decreasing_depending_on_your_loop_type = 4;

GOTO_HERE:
        /* // TODO: make into function */
        putchar('W');
        putchar('e');
        putchar(' ');
        putchar('G');
        putchar('o');
        putchar('t');
        putchar(' ');
        putchar('H');
        putchar('e');
        putchar('r');
        putchar('e');

        if (--loop_value_which_designates_increasing_or_decreasing_depending_on_your_loop_type)
        {
                goto GOTO_HERE;
        }
        else
                goto GOTO_THERE;
GOTO_THERE:
        /* // #C freenode, y this not print below????????? */
        /* // We are done. now. */

        return 0;
}