A. Tính luỹ thừa bằng đệ quy


Submit solution

Points: 50
Time limit: 1.0s
Memory limit: 256M

Problem type
Viết chương trình đệ quy tính (A mũ B) với công thức:

AB = A × AB-1

Đầu vào:
  • Hai số nguyên A, B (1 ≤ A ≤ 100, 0 ≤ B ≤ 10).
Đầu ra:
  • Giá trị AB.
Ví dụ:
Input Output
2 3 8
5 0 1

Comments

There are no comments at the moment.