Integers between two floating point numbers

C Program to print all the integers between two floating point numbers.

Program

#include<stdio.h>
#include<conio.h>
void main()
{
	float num1,num2;
	int i;

	printf("Enter 2 floating values : ");
	scanf("%f%f",&num1,&num2);

	printf("Integer numbers between %f and %f are\t: ",num1,num2);
	for(i=num1+1;i<=num2;i++)
	{
		printf("%d, ",i);
	}

	getch();
}

Output

Enter 2 floating values : 25.23
45.61
Integer numbers between 25.230000 and 45.610001 are     : 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,