Kod: Zaznacz cały
#include <stdio.h>
#include <math.h>
int main()
{
double x;
x=pow(27, 1.0/3.0);
printf("%f
", x);
return 0;
}
natomiast ze zmienna nie kompiluje :
Kod: Zaznacz cały
#include <stdio.h>
#include <math.h>
int main()
{
double x,y;
y=27;
x=pow(y, 1.0/3.0);
printf("%f
", x);
return 0;
}