C, pasted on Sep 11:
 ```1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 ``` ```#include #include #include #include double Power_n(double x, long n) { // n >= 0 double result = 1; while(n--) { result = result * x; } return result; } double qPower_n(double x, long n) { // n >= 0 double result = 1; while(n) { if(n % 2 == 1) { result = result * x; } x = x * x; n = n / 2; } return result; } int main() { double x = 4; long n = 2; double z; z = qPower_n(x, n); printf("z = %f", z); getch(); return 0; } ```

Output:
 ```1 ``` ```Line 17: error: conio.h: No such file or directory ```

#include<bits/stdc++.h>

using namespace std;
int main()
{
int x;
int y;
cout << "Enter x: ";
cin >> x;
cout << "Enter y: ";
cin >> y;
int S;
S = pow(x,y);
cout<<S<<
endl;
cin.ignore();
return 0;

}

s=a^3*b^4
Ai chỉ em bài nay dc ko a.

#include <iostream>
#include <math.h>
using namespace std;

int tinhluythua(int x, int y){
if (y == 0) return 1;
if (y == 1) return x;
return x * tinhluythua(x, y - 1);
}

int main() {
int x, y, luythua;
printf("\nNhap vao x: ");
scanf("%d", &x);
printf("\nNhap vao y: ");
scanf("\%d", &y);
luythua = tinhluythua(x, y);
cout << luythua << endl;
return 0;
}