+ 1

Hii,I am trying to solve Security code coach query My program satisfied 5/6 cases but still there 1 failed case.Please help me🙏

#include<stdio.h> #include<string.h> int main() { char s[150]; char *theif,*money,*guard; scanf("%s",s); theif=strchr(s,'T'); money=strchr(s,'

#x27;); guard=strchr(s,'G'); if (money>theif ||guard>theif && guard<money) { printf("ALARM"); } else if(money<theif ||guard<theif && guard>money) { printf("quiet"); } return 0; }

4th Jun 2020, 11:31 AM
Aniket Gade
Aniket Gade - avatar
2 Answers
4th Jun 2020, 11:33 AM
Aniket Gade
Aniket Gade - avatar
0
Okkkk Thanks.
4th Jun 2020, 1:57 PM
Aniket Gade
Aniket Gade - avatar