Can some Body Solve this Tipical Logicall error
#include<iostream> #include<conio.h> #include<math.h> using namespace std; int main() { int a,b,c,x,lar,slar,tlar; //a b c are sides of triangle cin>>a>>b>>c; do{ if((pow(a,2)+pow(b,2)==pow(c,2))||(pow(b,2)+pow(c,2)==pow(a,2))||(pow(c,2)+pow(a,2)==pow(b,2))) { x=1; if(a>b) { if(a>c) { lar==a; slar==c; tlar==b; } else { lar==c; slar==a; tlar==b; } } else { if(b>c) { lar==b; slar==c; tlar==a; } else { lar==c; slar==b; tlar==a; } } float sin,cos,tan; sin = tlar/lar; cos = slar/lar; tan = tlar/slar; cout<<"H"<<lar; cout<<"B"<<slar; cout<<"P"<<tlar; cout<<0<<"=\t"<<sin; cout<<0<<"=\t"<<cos; cout<<0<<"=\t"<<tan; int rootfive,theta; rootfive=sqrt(5); theta=(lar*rootfive)/tlar; cout<<0<<"\t=\t"<<theta; } else { cout<<"wrong entry"; break; } }while(x!=1); return 0; }