Program in c to identify input as int,long,float,double
Answers
Answered by
2
Answer:
Program in c to identify input as int, long, float, double.
Explanation:
#include <stdio.h>
void main()
{
float f;
int i;
printf("Enter a number:");
scanf("%f",&f);
i=f;
if(i==f)
printf("\nYou have Entered an Integer number");
else
printf("\nYou have Entered a float number");
}
Similar questions
Math,
5 months ago
Biology,
5 months ago
Social Sciences,
11 months ago
Math,
1 year ago
Physics,
1 year ago