#include <iostream>
using namespace std;
void foo(int n)
{
int x = 1;
int * initmod = new int[n];
cout << "1 / " << n << " = 0.";
int i = 0;
while (true)
{
x = x * 10;
cout << x / n;
x = x % n;
if (x % n == 0) break;
for (int j = 0; j < i; j++)
if (initmod[j] == x % n) goto exitloop;
initmod[i++] = x % n;
}
cout << endl;
return;
exitloop:
cout << "..." << endl;
}
int main()
{
for (int i = 2; i <= 50; i++)
{
foo(i);
}
}