Please check the code sir , though it is compiling but not obtaining any output .
Please check this code!
here is your corrected code:
if this solves your doubt ,please mark it as resolved
Mam , this link shows me the code i wrote as it is !!
yes my bad refer to this here
you didnt even take array input
f this solves your doubt ,please mark it as resolved