Computer Science, asked by swetabhch731, 11 months ago

Program in c to identify input as int,long,float,double

Answers

Answered by sushiladevi4418
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