ZhilinskiyG

Task 1_05

Feb 11th, 2016
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5. {
  6.     int A;
  7.     cin >> A;
  8.     int B;
  9.     cin >> B;
  10.     int K;
  11.     cin >> K;
  12.     if (A < K < B) {
  13.         cout << "Yes, you can eat in this cafe" << endl;
  14.     }
  15.     else {
  16.         if (K > A > B) {
  17.             cout << "No, you cant eat in this cafe" << endl;
  18.         }
  19.     }
  20.     return 0;
  21. }
Add Comment
Please, Sign In to add comment