[ create a new paste ] login | about

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

slevy1ster - C, pasted on Nov 17:
1
2
3
4
5
6
7
8
9
10
#include <stdlib.h>
#include <math.h>


int main(){
 double inf = (double) 1/(double) 0;
 printf("%lf\n%lf\n\n", inf/(double) 1, inf/(double)0);
 printf("%lf\n%lf\n\n",(double) 1/ inf, (double) 0/ inf);
 return 0;
}


Output:
1
2
3
4
5
6
inf
inf

0.000000
0.000000



Create a new paste based on this one


Comments: