Advertisement
nlrn

MIREA_R1-Mersov-n5

Nov 19th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement