반응형
#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
계속하려면 아무 키나 누르십시오 . . .

*/
반응형

'C, C++ > 프로그램' 카테고리의 다른 글

최솟값과 최댓값 구하기  (0) 2019.03.24
Over flow  (0) 2019.03.24
피라미드 만들기  (0) 2019.03.24
화폐를 가장 적게 주는 방법  (0) 2019.03.24
메모리 크기  (0) 2019.03.24

+ Recent posts