Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <fstream>
- using namespace std;
- float Pole (float a)
- {
- return a*a;
- }
- double Pole (double r)
- {
- return 3.14*r*r;
- }
- float Pole (float a,float b)
- {
- return a*b;
- }
- int main()
- {
- float a,b;
- double r;
- char opcja;
- cout<<"1- wybierz opcje: " <<endl;
- cout<<"2- pole prostokąta: "<<endl;
- cout<<"3- pola koła: "<<endl;
- cin>>opcja;
- switch(opcja)
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement