> Thanks for your help. Program is running but the problem is i can't run > it. Whenever i execute ./a.out, it hangs and dont give any output. > Can you please tell me, what is missing here? Possibly the input? Ali