//Prog 1
#include<stdio.h>
int main()
{
float a=75.7;
printf("%.10f\n",a); //prints 75.6999969482
if(75.7>a)
    printf("Hi");
else
    printf("Hello");
return 0;
}

//Prog 2
#include<stdio.h>
int main()
{
float a=275.7;
printf("%.10f\n",a);//prints 275.7000122070 *WHY???*
if(275.7>a)
    printf("Hi");
else
    printf("Hello");
return 0;
}

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to