I need to create a program in C that given two integers numbers, i will divide both, for example, 1/3 = 0,333333..
But i cant use double variables, i only can use integers.
I need to divide two numbers how humans divide if dont have calculator, using denominator, quotient and rest.
This is the first part of the problem, the second is...
When i have the results of the divisions, i need to analyse all the results and see if the number have some part that repeats and a part that not repeats.
Some like this:
19/44 = 0.43181818
Only the numbers at the right of the comma interest.
Well, 43 dont repeat, we need that value for the non repeat value, and then we had a number that is repeating that is 181818, i need to save that value for another variable.
and that is the problem.
Can anyone give me some help with this problem? i need to have this problem finish until tomorrow, need some assistance with urgency.