int main() { double a; cin >> a; if ( floor(a) == ceil(a) ) cout << "Integer"; else cout << "Double"; return 0; }
a
double
sscanf
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)