Prateek sir and coding segmentation fault

help me find out why i am getting segmentation fault