In this video tutorial lets see how we can compare a floating point variable with a constant value, and lets…