Advertisement
Guest User

Untitled

a guest
Nov 19th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1.  
  2. #include<iostream.h>
  3. #include<string.h>
  4. #include<math.h>
  5. void main()
  6. {double x0,y0,x1,y1,x2,y2,x3,y3,x4,y4,A,B,C,D,E,yg1,yg2,yg3,yg4,yg5,Vipuklaya,Nevipuklaya ;
  7. A=(x0,y0);
  8. B=(x1,y1);
  9. C=(x2,y2);
  10. D=(x3,y3);
  11. E=(x4,y4);
  12.  
  13. cout<<"Vvedite x0"<<endl;
  14. cin>>x0;
  15. cout<<"Vvedite y0"<<endl;
  16. cin>>y0;
  17. cout<<"Vvedite x1"<<endl;
  18. cin>>x1;
  19. cout<<"Vvedite y1"<<endl;
  20. cin>>y1;
  21. cout<<"Vvedite x2"<<endl;
  22. cin>>x2;
  23. cout<<"Vvedite y2"<<endl;
  24. cin>>y2;
  25. cout<<"Vvedite x3"<<endl;
  26. cin>>x3;
  27. cout<<"Vvedite y3"<<endl;
  28. cin>>y3;
  29. cout<<"Vvedite x4"<<endl;
  30. cin>>x4;
  31. cout<<"Vvedite y4"<<endl;
  32. cin>>y4;
  33. cout<<"Vvedite yg1"<<endl;
  34. cin>>yg1;
  35. cout<<"Vvedite yg2"<<endl;
  36. cin>>yg2;
  37. cout<<"Vvedite yg3"<<endl;
  38. cin>>yg3;
  39. cout<<"Vvedite yg4"<<endl;
  40. cin>>yg4;
  41. cout<<"Vvedite yg5"<<endl;
  42. cin>>yg5;
  43. if(yg1<180 , yg2<180 , yg3<180 , yg4<180 && yg5<180)
  44. cout<<"Vipuklaya"<<endl;
  45. else
  46. cout<<"Nevipuklaya"<<endl;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement