Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cmath>
- #include <iostream>
- using namespace std;
- int main()
- {
- cout.setf(ios::boolalpha);
- //int t = 10;
- int k,t;
- bool a, r, c;
- bool b = 1;
- cout << "Vvedite A (1 or 0): ";
- cin >> a;
- cout << "Vvedite B (1 or 0): ";
- cin >> b;
- cout << "Vvedite c (1 or 0): ";
- cin >> c;
- cout << "Vvedite k (int): ";
- cin >> k;
- cout << "Vvedite t (int): ";
- cin >> t;
- r = ((a == 1) && (b == 1) && (c == 1) || ( k == t) );
- cout << "r= " << r << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement