i see what you mean, but if the user would enter 12345 as an integer, how can i make sure that i've got all the number seperated?
would it be something like:
don't mind the alghoritm, cause it will not work if user inputs something else then 12345,Code:scanf("%d",&myint); answer[0]=myint/10000; answer[1]=(myint/11000)*2; answer[2]=(myint/11100)*3; etc...
but is it possible to solve it like this?




Reply With Quote