Ответ:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int N;
setlocale(LC_ALL, "Russian");
cout << "N = ";
cin >> N;
cout << "2 ^ " << N << " = " << pow(2, N) << "\n";
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int N;
setlocale(LC_ALL, "Russian");
cout << "N = ";
cin >> N;
cout << "2 ^ " << N << " = " << pow(2, N) << "\n";
}