Code error detection

Could you please check my code and tell me why my code isn’t working on some test cases. and give examples of the test cases on which my test cases won’t give the right answer for! Here’s the link for my code :
https://ide.codingblocks.com/s/382633

for 99
output should be 90
Try to debug with this