i decided to write a little program which took a numerator and a denominator and gave the decimal. I then decided that showing repeating decimals was important so i decided to use the format 1/3 = .(3). My only problem is i don't know a way to tell if the decimal is repeating. Here is what i have so far:

<code>

#include <stdio.h>

float n, d;

float decimal;

int main()

{

printf("N will be the numerator and D will be the denominator");

printf("\nPlease enter N D: ");

scanf("%f %f", &n, &d);

decimal = n / d;

printf("The fraction %f/%f = %f", n, d, decimal);

system("Pause");

return 0;

}

</code>