fork download
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int X;
  6. float N;
  7. cin>>N;
  8. X=N;
  9. if((N-X)==0)
  10. cout<<"int "<<X<<endl;
  11.  
  12. if((N-X)!=0)
  13. cout<<"float "<<X<<" "<<N-X<<endl;
  14.  
  15. return 0;
  16. }
  17.  
  18.  
  19.  
Success #stdin #stdout 0s 4484KB
stdin
Standard input is empty
stdout
float 0 4.59149e-41