#include<stdio.h>
void main()
{
float x=1.1;
while(x==1.1)
{
printf("\n%f",x);
x=x-0.1;
}
}
I have learnt that while loop can also involve floating point numbers but the above program doesn't show any output. Why is it so ?
#include<stdio.h>
void main()
{
float x=1.1;
while(x==1.1)
{
printf("\n%f",x);
x=x-0.1;
}
}
I have learnt that while loop can also involve floating point numbers but the above program doesn't show any output. Why is it so ?