C prog Segmentation error.

Hello Friends,
I made this program, it is running fine. when i try to add this line of code in to do repeat. It is giving segmentation error. can you please tell me how should i fix tht error.

program runs fine. when i add

char r;
if statement
while (ch r ='y')
some cofe
printf(" repeat");
scanf("%c" &r);

Any help will be appreciated

That has syntax errors. Please post all the code you have.

Thanks for reply.Is it ok if I can pm you the code?

no. post it so everyone can learn.

Why so many pseudo code; even whats in the while() statement??????

Why don't you post your full program or part of it (not pseudo codes), if the same is not reasonably small enough to be posted.