Interesting, with the 'z' i thought, that you could only write
Readln;
Sorry for stupid question, but have you tried entering negative "c" or "b"? I still think its because of sqrt from negative number. I tried it with many numbers and i worked. Try for example a=6; b=-15; c=6 and you should...