Code:Hi everyone. Well, I have just started C++ programming and I solved one problem partly, actually the user enters three numbers and I must check if there is a right triangle with sides whose lengths are those three numbers. The program works for integer .For example, if I enter :3,4,5 it works but when I enter 0.3 , 0.4 , 0.5 it says there there us no right traingle with these lenghts but it should be ! Here is the program : #include<iostream> using namespace std; int main(){ double a,b,c; cout<<"Please enter three numbers"; cin>>a>>b>>c; if(a*a+b*b==c*c || a*a+c*c==b*b || c*c+b*b==a*a) cout<<"There is a right triangle with these lenghts"; else cout<<"There is not ... "; return 0; }