[ create a new paste ] login | about

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

C, pasted on Dec 18:
1
2
3
4
5
6
7
8
9
#include <stdio.h>

int main()
{
float a = 12.5;
printf("%f\n", a);
printf("%d\n", (int)a);
return 0;
} 


Output:
1
2
12.500000
12


Create a new paste based on this one


Comments: