fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. int main()
  5. {
  6. using namespace std;
  7. float a, b;
  8. cout << "Введите a и b: ";
  9. cin >> a >> b;
  10. float z1 = (sin(a) + cos(2 * b - a)) / (cos(a) - sin(2 * b - a));
  11. float z2 = (1 + sin(2 * b)) / cos(2 * b);
  12. cout << "\nz1 = " << z1 << '\n' << "z2 = " << z2 << endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 4536KB
stdin
0.3
0.5
stdout
Введите a и b: 
z1 = 3.40822
z2 = 3.40822