Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream.h>
- #include<string.h>
- #include<math.h>
- void main()
- {double x0,y0,x1,y1,x2,y2,x3,y3,x4,y4,A,B,C,D,E,yg1,yg2,yg3,yg4,yg5,Vipuklaya,Nevipuklaya ;
- A=(x0,y0);
- B=(x1,y1);
- C=(x2,y2);
- D=(x3,y3);
- E=(x4,y4);
- cout<<"Vvedite x0"<<endl;
- cin>>x0;
- cout<<"Vvedite y0"<<endl;
- cin>>y0;
- cout<<"Vvedite x1"<<endl;
- cin>>x1;
- cout<<"Vvedite y1"<<endl;
- cin>>y1;
- cout<<"Vvedite x2"<<endl;
- cin>>x2;
- cout<<"Vvedite y2"<<endl;
- cin>>y2;
- cout<<"Vvedite x3"<<endl;
- cin>>x3;
- cout<<"Vvedite y3"<<endl;
- cin>>y3;
- cout<<"Vvedite x4"<<endl;
- cin>>x4;
- cout<<"Vvedite y4"<<endl;
- cin>>y4;
- cout<<"Vvedite yg1"<<endl;
- cin>>yg1;
- cout<<"Vvedite yg2"<<endl;
- cin>>yg2;
- cout<<"Vvedite yg3"<<endl;
- cin>>yg3;
- cout<<"Vvedite yg4"<<endl;
- cin>>yg4;
- cout<<"Vvedite yg5"<<endl;
- cin>>yg5;
- if(yg1<180 , yg2<180 , yg3<180 , yg4<180 && yg5<180)
- cout<<"Vipuklaya"<<endl;
- else
- cout<<"Nevipuklaya"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement