Advertisement
AlexandruDu

2.prob fis

Jun 6th, 2019
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. Problema cu triunghiul
  2. #include<iostream>
  3. #include<fstream>
  4. unsigned space std;
  5. ifstream f("triunghi.txt")
  6. int main()
  7. {unsigned int a,b,c;
  8.  while(f>>a>>b>>c)
  9. {if((a+b>c)&&(b+c+a)&&(a+c>b))
  10. {if(a=c&&b=c&&b=a)
  11.  cout<<"oarecare"<<endl;
  12. else if(a==b&&b==c)
  13.  cout<<"echilateral"<<endl;
  14. else
  15.  cout<<"isocel"<<endl;
  16. }
  17. }
  18. }
  19. return 0:
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement