Advertisement
N1E7R4V

Untitled

Dec 25th, 2012
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. // Задача000000000002.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include <iostream>
  6. using namespace std;
  7.  
  8.  
  9. int _tmain(int argc, _TCHAR* argv[])
  10. {
  11.     bool x;
  12.     bool y;
  13.     bool z;
  14.     bool t;
  15.     cout << "Vvedite X";
  16.     cin>> x;
  17.     cout <<"Vvedite Y";
  18.     cin >> y;
  19.     cout <<"Vvedite Z";
  20.     cin >> z;
  21.     t=(!(y||(!x)&&z)||z);
  22.     cout<<t;
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement