[ create a new paste ] login | about

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

C, pasted on Dec 8:
#include<stdio.h>
int main()
{
    int a,b,c;
    int s,w,t;
    s=w=t=1;
    a=-1;
    b=3;
    c=3;
    if(c>0) s=a+b;
        if(a<=0)
        {
            if(b>0)
                  if(c<=0)
                     w=a-b;
        }
    else if(c>0) 
        w=a-b;
    else 
        t=c;
    printf("%d,%d,%d",s,w,t);
    return 0;
}


Output:
1
2,1,1


Create a new paste based on this one


Comments: