SEGMENTATION FAULT

I m getting a segmentation fault in the code i have typed above.Please help me to fix it

can you please share your code here?