Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int cif,x;
- float f;
- cin>>x;
- cin>>cif;
- switch(cif)
- { case 1:f=x^2-6*x;break;
- case 2:f=sqrt(x*x*x*x+12);break;
- case 3:f=2*x+12;break;
- default:f=14; }
- cout<<f;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement