Passing Values Double And Float Type See Result In Integer Value

  1. #include<stdio.h>  
  2. #include<conio.h>  
  3. main()  
  4. {  
  5.     //that program convert double and float datatype values to integer type  
  6.       
  7.     double a=21.09399;  
  8.     float b=10.20;  
  9.     int c;  
  10.     c=(int) a;  
  11.     printf("interger of c\n%d",c);  
  12.     c=(int) b;  
  13.     printf("%d",c);  
  14.     return 0;  
  15.  }