2的n次方用c语言怎么表示

C语言有函数,需要头文件#include <math.h>
用pow(2,n)就可以了!

double result = pow(2,n);

原文地址:https://www.cnblogs.com/Ph-one/p/10594094.html