+ 1
Can anyone please tell me why am i failing 5th testcase?
#include <stdio.h> int main() { int yard; scanf("%d",&yard); int x=1; if(yard > 10){ printf("High Five"); } else if(yard==0){ printf("shh"); } else if(yard>0 && yard<=10){ do { printf("Ra!"); x++; }while(x <= yard); } return 0; }
2 Antworten
+ 11
Shaik Nadeem Sameer please read the statement carefully "shh" should be return when yard value less than 1
else if(yard<1){
printf("shh");
}
it should fix the issue in test case.
0
GAWEN STEASY thanks alot. It worked. Experts like you are saviors to newbies like me