#include<iostream>
using namespace std;
int main(){
float a=1.11;
if(a==1.11){cout<<"yes";} else {cout<<"no";}
return 0;
}
Result:
no
Process exited after 0.2579 seconds with return value 0 Press any key to continue . . . Captured Result here
#include<iostream>
using namespace std;
int main(){
float a=1.11;
if(a==1.11){cout<<"yes";} else {cout<<"no";}
return 0;
}
Result:
Process exited after 0.2579 seconds with return value 0 Press any key to continue . . . Captured Result here
Type 1.11f
#include<iostream>
using namespace std;
int main(){
float a=1.11f;
if(a==1.11f){cout<<"yes";} else {cout<<"no";} //here not
return 0;
}