2777: 计算2的幂(递归)
摘要:解题思路:递归注意事项:参考代码:#include<iostream>
using namespace std;
int mi(int n)
{
if(n==0) return 1;
i……
2的幂 基础模式,中规中矩
摘要:解题思路:pow函数的应用注意事项:注意头文件math.h参考代码:#include<stdio.h>#include<math.h>int main(){ int n,i; scanf(……