BASIC CALCULATOR Problem

Link to the problem is - https://hack.codingblocks.com/contests/c/537/195
Link to my code is - https://ide.codingblocks.com/s/36782
I am getting error time limit exceeded.
Please guide.

There is no need of recursion so don’t call the main() again and also handle the case in ‘%’ , ‘/’ when j is 0.