C/pow: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
m // nowy
Linia 56:
c= sqrt(temp);
</source>
 
 
 
<source lang="c">
// gcc c.c -lm
#include <stdio.h>
#include <math.h> // -lm
 
int main()
{
// pek = p*10^k = p*pow(10.0, k)
printf("%f\n", pow(10.0, 3));
printf("%f\n", 1e3);
 
return 0;
}
</source>
 
 
wynik:
 
<pre>
1000.000000
1000.000000
</pre>
 
=== Uwagi ===