#include <stdio.h> int main(){ float f = 10.2; int i = int(f); printf("i: %d\n", i);}
Standard input is empty
i: 10
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!