[ create a new paste ] login | about

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

C, pasted on Jan 30:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>

int main(int argc, char *argv[]){
    int a;
    double b,c;
    a = 2;
    b = 2.0;
    if(a == b){
        c = 3 / a;
        printf("%f\n",c);
        c  = 3 / b;
        printf("%f\n",c);
    }
}


Output:
1
2
3
4
1.000000
1.500000

Exited: ExitFailure 9


Create a new paste based on this one


Comments: