The scanf may be the problem.Remove the \n and recompile and run :)
Type: Posts; User: std10093
The scanf may be the problem.Remove the \n and recompile and run :)
You mean that printf at line 16 has no effect?
In line 13 notice that you mul from 0 to 9 not from zero to ten,so you should use operator <= instead of <