+ 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; }2 odpowiedzi
0
Okkkk Thanks.