C, C++/프로그램
제곱 구하기
유진
2019. 3. 24. 01:18
반응형
#include <stdio.h>
#include <math.h>
int main()
{
double x = pow(2.0, 20.0);
printf("2의 20제곱은 %.0f입니다.\n", x);
}
/*
2의 20제곱은 1048576입니다.
--------------------------------
Process exited after 0.01391 seconds with return value 0
계속하려면 아무 키나 누르십시오 . . .
*/반응형