Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<cstdio>
- #include<string.h>
- #include<iostream>
- using namespace std;
- int main()
- {
- int i;
- char str[110];
- gets(str);
- for(i=0 ; str[i]!='\0' ; i++)
- {
- if(str[i]=='H' || str[i]=='Q' || str[i]=='9')
- {
- printf("Yes");
- break;
- }
- else
- cout << "No" << endl;
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement