Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* switch(triangle_choice);
- {
- case 1:
- cout <<"Podaj a: "<<endl;
- cin>>a;
- cout <<"Podaj h: "<<endl;
- cin>>b;
- cout<<"Pole Jest Rowne: "<<(a*b)/2<<endl;
- case 2:
- cout<<"Czy Trojkat Jest Prostokatny?"<<endl
- cout<<""<<endl;
- cout<<"1. Tak"<<endl;
- cout<<"2. Nie"<<endl;
- cin>>a;
- if(a==1)
- {
- cout<<"Podaj h: "<<endl;
- cin>>a;
- cout<<"Podaj druga przy prostokatna: "<<endl;
- cin>>b;
- sqrt(c)=sqrt(a)+sqrt(b);
- cout<<c;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement