Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include<cstdio>
  2. #include<string.h>
  3. #include<iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9.     int i;
  10.     char str[110];
  11.     gets(str);
  12.  
  13.     for(i=0 ; str[i]!='\0' ; i++)
  14.     {
  15.         if(str[i]=='H' || str[i]=='Q' || str[i]=='9')
  16.         {
  17.             printf("Yes");
  18.             break;
  19.         }
  20.         else
  21.             cout << "No" << endl;
  22.             break;
  23.     }
  24.  
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement