Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int cif,x;
  8. float f;
  9. cin>>x;
  10. cin>>cif;
  11. switch(cif)
  12. { case 1:f=x^2-6*x;break;
  13. case 2:f=sqrt(x*x*x*x+12);break;
  14. case 3:f=2*x+12;break;
  15. default:f=14; }
  16. cout<<f;
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement