Advertisement
xDelik

Untitled

Oct 19th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. /* switch(triangle_choice);
  2. {
  3. case 1:
  4. cout <<"Podaj a: "<<endl;
  5. cin>>a;
  6. cout <<"Podaj h: "<<endl;
  7. cin>>b;
  8. cout<<"Pole Jest Rowne: "<<(a*b)/2<<endl;
  9.  
  10. case 2:
  11.  
  12. cout<<"Czy Trojkat Jest Prostokatny?"<<endl
  13. cout<<""<<endl;
  14. cout<<"1. Tak"<<endl;
  15. cout<<"2. Nie"<<endl;
  16. cin>>a;
  17.  
  18. if(a==1)
  19. {
  20. cout<<"Podaj h: "<<endl;
  21. cin>>a;
  22. cout<<"Podaj druga przy prostokatna: "<<endl;
  23. cin>>b;
  24. sqrt(c)=sqrt(a)+sqrt(b);
  25.  
  26. cout<<c;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement