Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Problema cu triunghiul
- #include<iostream>
- #include<fstream>
- unsigned space std;
- ifstream f("triunghi.txt")
- int main()
- {unsigned int a,b,c;
- while(f>>a>>b>>c)
- {if((a+b>c)&&(b+c+a)&&(a+c>b))
- {if(a=c&&b=c&&b=a)
- cout<<"oarecare"<<endl;
- else if(a==b&&b==c)
- cout<<"echilateral"<<endl;
- else
- cout<<"isocel"<<endl;
- }
- }
- }
- return 0:
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement