This Line
while (tt < 0) tt += 100000 * c;
ok thanks a lot buddy you really helped me out, i could never detect these error on my own.
Welcome!! 
can i disturb you everytime when i deal with situations like these ?
Ya sure!!
I’ll try to revert when and as I’m free!!
