개요
- C언어 pow()
#include <stdio.h>
#include <math.h>
int main() {
printf("%f\n", pow(2, -3)); // 0.125000
printf("%f\n", pow(2, 10)); // 1024.000000
}
#include <stdio.h>
#include <math.h>
int main() {
printf("%d\n", (int)pow(2, 10)); // 1024
}