SHARE
TWEET

MIREA_R1-Mersov-n5

nlrn Nov 19th, 2018 (edited) 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* TERNOGON.NET | MIREA 20X8 */
  2.  
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. bool lat(char symbol){
  7.     cout << "S = " << symbol << endl;
  8.     if ((symbol >= 65 and symbol <= 90) or (symbol >= 97 and symbol <= 122)) {
  9.         return false;
  10.     }
  11.     else
  12.         return true;
  13. }
  14.  
  15. int main(){
  16.     char C;
  17.     cin >> C;
  18.     if (lat(C) == 1) {
  19.         cout << "True";
  20.     }
  21.     else
  22.         cout << "False";
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top