Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- double c1 = 4, c2 = 1.758, y;
- int j = 5.88, k = 2, n = 4.99, m ;
- n = n + 2.55;
- n = (n + 1) / 3 + c1;
- m = 4.75 +(n - 3) / j;
- j = (n + 2) % m;
- k = m % (n + 1);
- if (j == k)
- y = (n + k) / (m + j) + c2;
- else
- y = (m + j) / (n + k) + c2;
- cout.setf(ios::fixed);
- cout.setf(ios::showpoint);
- cout.precision(2);
- cout << "The value of j = " << j << endl;
- cout << "The value of k = " << k << endl;
- cout << "The value of m = " << m << endl;
- cout << "The value of n = " << n << endl;
- cout << "The value of y = " << y << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement