Please check the code for this problem!

Sir/Mam , Please check the code , it is showing me segmentation fault !!

hello @piyushkumar999999

check now->