#include<iostream>using namespace std;int main(){int X;float N;cin>>N;X=N;if((N-X)==0)cout<<"int "<<X<<endl; if((N-X)!=0)cout<<"float "<<X<<" "<<N-X<<endl; return 0;}
Standard input is empty
float 0 4.59149e-41
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!