C++ program doubt

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

@yutikakhanna ok wait some time i will provide


here take a look.
if its cleared dont forget to mark it as resolved in my doubts section :smiley:
@yutikakhanna

this code is showing error…can you provide another code

no @yutikakhanna its working fine give input in form of string also run it on online ide and check

@yutikakhanna if your doubt is cleared please mark it as resolved

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.