/* * rootmaster.c * 035760A * * Created by Toshiaki YOKODA on Thu May 29 2003. * * */ #include #include int main() { double a, b, c, d, e, f, g, h, i, j, k, l, m; h=1; printf("input inside\n"); scanf("%lf", &a); printf("input outside\n"); scanf("%lf", &i); printf("input roop\n"); scanf("%lf", &m); j=2; k=2; g=a; while ( h < m ) { b=a*a; while ( j < i ) { b=b*a; j=j+1; } f=b-g; c=a*i; while ( k < i ) { c=c*a; k=k+1; } d=f/c; e=a-d; k=2; a=e; printf("%lf", e ); printf("\n"); h=h+1; j=2; } }