AD4BP

For convert real no. into integer no.

#include< stdio.h >
#include< conio.h >

void main()
{
float a,b;
clrscr();

printf("Enter no:");
scanf("%f",&a);

b=a-(int)a;

if(b>=0.5)
printf("Number=%d",(int)a+1);

else
printf("Number=%d",(int)a);

getch();
}