Hello,

i am to write a table of square roots and forthr roots like see:

Integer Square root forth root

1 1.00000000 1.00000000

2 1.414213562 1.189207115

3 1.732050808 1.1316074013

4 2.000000000 1.414213562

Now! I am good so far with the square root but my forth root is not coming out right. It reads 2.65 something or another and i need some help please.

#include<stdio.h>

#include<math.h>

void prn_heading (void);

void prn_and_read_data (void);

int main()

{

prn_heading();

prn_and_read_data();

return 0;

}

void prn_heading(void)

{

printf("%3s%28s%28s%28s",

"Integer", "Square Root", "Fourth Root\n",

"--------------------------------------------------------------\n\n");

return;

}

void prn_and_read_data (void)

{

int x;

double square_root, fourth_root;

for (x = 1; x <= 100; ++x)

printf("%5d:%28.9e %28.9e\n", x = x, sqrt(x), square_root = pow(x, x));

fourth_root = square_root * square_root;

printf("%50.9e", fourth_root);

;

return;

}