[C++] Tính T(X N) = X^N Ngôn ngữ: C++ Phần mềm: Visual Studio CODE: Select All #include <iostream>using namespace std;//Tính T(x, n) = x^nint calSum(int X, int N){ int P = 1; for (int i = 1; i <= N; i++) { P = P * X; } return P;}int main(){ int X, N; cout << "Input X = "; cin >> X; cout << "Input N = "; cin >> N; int result = calSum(X, N); cout << "Result " << result; cout << "\n"; system("pause"); return 0;}