+ 2
Please anyone explain this output?
Code: #include <iostream> using namespace std; int main() { float a=0.70; if(0.70>a){ cout<<a; } else{ cout<<0; } return 0; } Output: 0.70 But why? 0.70 is not greater than 0.70! Please anyone explain?
4 Respostas
+ 3
Check that threads
https://www.sololearn.com/discuss/1801451/?ref=app
+ 2
Théophile thanks 🙏
+ 1
You're welcome!
+ 1
Float a =0.70 explain 0 and you should write double a=0.70
Check that threads
https://www.sololearn.com/discuss/1801451/?ref=app