Not working in my pc

i am using code blocks which is not woring for yur code sir

Hey Ankush, can you send the screenshot of what exact issue you are facing. Also try to run that code on ide , if its working here then most probably there is some issue with compiler or c++ version in your pc.