[ create a new paste ] login | about

Link: http://codepad.org/5EuYe1ni    [ raw code | output | fork ]

godneil - C, pasted on Sep 13:
#include <stdio.h>

int my_program(int x, int y);
int x = 8;
int y = 5;
int main() 
{
	my_program(x,y);
	return 0;
}

int my_program(int x, int y)
{
    if (x > y)
    {
        printf("x is greater");
        return 0;
    }
    else
    {
        printf("y is greater");
        return 0;
    }
}


Output:
1
x is greater


Create a new paste based on this one


Comments: