pls tell the program code that checks if a number has three consecutive 5s. If yes, print YES else print NO
e.g . if number = 345559
result:YES
C++ program doubt
here take a look.
if its cleared dont forget to mark it as resolved in my doubts section 
@yutikakhanna
this code is showing error…can you provide another code
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.