Advertisement
rootuss

3.4

Oct 22nd, 2016
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.81 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4. #include <cstdlib>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     //const double pi=3.141592653589;
  10.     double a, b;
  11.     double wynik1, wynik2, wynik3;
  12.  
  13.     cout << "podaj a i b: " << endl;
  14.     cout << "a= ";
  15.     cin>>a;
  16.     cout << "b= ";
  17.     cin>>b;
  18.  
  19.     cout << endl;
  20.  
  21.     wynik1=sqrt( 7/( (pow(a,3))+cos( (M_PI*b) /180)) );
  22.     cout << "wynik w podpunkcie a to: "<<fixed<<setprecision(6)<<wynik1<< endl<< endl;
  23.  
  24.     wynik2=sin( M_PI*(pow((a+b),4)/(sqrt(11)+1))/180 );
  25.     cout << "wynik w podpunkcie b to: "<<fixed<<setprecision(6)<<wynik2<< endl<< endl;
  26.  
  27.     wynik3=pow( (cos(M_PI*(a+1)/180))/(sqrt(5)+3),3 );
  28.     cout << "wynik w podpunkcie c to: "<<fixed<<setprecision(6)<<wynik3<< endl<< endl<< endl;
  29.  
  30.  
  31.     system ("pause");
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement