#include float rootsystem(float in,int kon) { float bus1, bus2, bus3; int count, count2; bus1 = in; bus2 = in; bus3 = in; for (count2=0; count2 < 100000; ++count2){ for (count=1; count < kon; ++count){ bus2 = bus2 * bus1; } bus3 = bus3 - (( bus2 - in ) / ((float)kon * (bus2 / bus1))); bus1 = bus3; bus2 = bus3; } return (bus3); } int main() { int kon; float in; printf("enter inside root...\n"); scanf("%f", &in); printf("enter outside root...\n"); scanf("%d", &kon); printf("please wait...\n"); printf("%f\n", rootsystem(in,kon)); }