for my shcool project, i am supposed to write a console application program where you can enter a fraction in the form of n/d (numberator/denominator). then when you enter that, the program is supposed to divide the numerator by the denominator. then the prog should give you the quotient, but if it is a repeating decimal (i would just assume that anything above 8 decimal places is repeating) the program is supposed to show the repeating quotient as follows. lets say you typed in one third which is a repeating .3

it should display it as .(3)

1/3 [ENTER]

.(3)

how do you get the string input in the beginning to recognize n/d as two integers and then how do you get it to display a repeating decimal like .(3) I'm not sure how to get it to display it with the decimal point and then the parenthesis

now im tired from typing such a long thread. i feel like a noob