Advertisement
Guest User

Programik 108

a guest
Jan 20th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <fstream>
  4.  
  5. using namespace std;
  6.  
  7. float Pole (float a)
  8. {
  9. return a*a;
  10. }
  11. double Pole (double r)
  12. {
  13. return 3.14*r*r;
  14. }
  15. float Pole (float a,float b)
  16. {
  17. return a*b;
  18.  
  19. }
  20. int main()
  21. {
  22. float a,b;
  23. double r;
  24. char opcja;
  25. cout<<"1- wybierz opcje: " <<endl;
  26. cout<<"2- pole prostokąta: "<<endl;
  27. cout<<"3- pola koła: "<<endl;
  28. cin>>opcja;
  29. switch(opcja)
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement