2017-07-18 14:02:10
#include<bits/stdc++.h>
using namespace std;
int main()
{
    char a[100];
    bool f=0,vl=1;
    int count=0;
    while(gets(a))
    {
    //count=0;
    f=0;
    vl=1;
    count=0;
    for(int i=0;a[i]!='\0';i++)
    {
        if((a[i]>='0'&&a[i]<='9'))
            vl=1;
            else if(a[i]=='.')
            {
                vl=1;
                count++;
                //cout<<"ok";
            }
        else
        {
            vl=0;
            break;
        }
    }
    //cout<<count<<endl;
    if(vl==0||count>1)
    {
        cout<<"not a valid number\n";
    }
    else
    {
 
 
    for(int i=0;a[i]!='\0';i++)
    {
        if(a[i]=='.')
        {
 
            f=1;
            //count++;
 
        }
    }
    if(f==1&&count==1)
        cout<<"Float\n";
 
    else
        cout<<"Integer\n";
    }
    }
}
 
Invalid Email or Password