hi Dear,
Please try this code easy and simple....

Code:
#include <stdio.h>
#include <conio.h>
void main()
{
float f;
int i;
printf("Enter a number : ");
scanf("%f",&f);
i=f;
if(i==f)
    printf("\nYou have Enterd an Intiger number");
else
    printf("\nYou have Enterd a float number");
getch();
}

Last edited by shabbir; 18Aug2012 at 11:22.. Reason: Code blocks