团体程序设计天梯赛-练习集 L1-012 计算指数 (5分)

在这里插入图片描述

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    int n;
    cin >> n;
    cout << "2^" << n << " = " << pow(2, n);
    return 0;
}
发布了75 篇原创文章 · 获赞 58 · 访问量 3274

猜你喜欢

转载自blog.csdn.net/qq_44458489/article/details/105024389