Try running it from a separate DOS prompt. I get this, and it doesn't hang:
Enter the number of pairs of values ( <= 50 ) 12,34
Enter ( x1 , y1 ) Enter ( x2 , y2 ) Enter ( x3 , y3 ) Enter ( x4 , y4 ) Enter ( x5 , y5 ) Enter ( x6 , y6 ) Enter ( x7 ,
y7 ) Enter ( x8 , y8 ) Enter ( x9 , y9 ) Enter ( x10 , y10 ) Enter ( x11 , y11 ) Enter ( x12 , y12 ) c[1][1] = 12.00000
0
c[1][2] = 12130806504245444375550000000000000000.000000
c[1][3] = nan
c[2][1] = nan
c[2][2] = nan
c[2][3] = inf
Note it asks only once for input, the other "Enter" do not wait!