Advertisement
LEGEND2004

YES or YES?

Jun 27th, 2023
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. signed main()
  6. {
  7.     int t , n;
  8.     string s;
  9.     cin >> t;
  10.     while(t--){
  11.         cin >> s;
  12.         n = s.size();
  13.         for(int i = 0; i < n; i++){
  14.             s[i] = tolower(s[i]);
  15.         }
  16.         if(s == "yes"){
  17.             cout << "YES" << endl;
  18.         }else{
  19.             cout << "NO" << endl;
  20.         }
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement