0

Why I'm getting output as Yes though 9.58 is not less than 9.58 or Is there anything wrong with this If condition?

#include <iostream>

int main()
{
   float x = 9.58;

   if (x < 9.58)
   {
      std::cout << "Yes" << '\n';
   }

   return (0);
}
TheDev05
  • 198
  • 10

0 Answers0