# include <stdio.h>int RaiseToPower(int n, int k){ if(k == 0) return 1; else return pow(n,k);} int main() {int n,k;printf("请输入两个数\n");scanf("%d,%d\n",&n,&k); printf("%d\n",RaiseToPower(n,k)); return 0;}
- 1 回答
- 0 关注
- 1033 浏览
添加回答
举报
0/150
提交
取消