Created
September 23, 2023 13:50
-
-
Save Khuirul-Huda/8583e1770b85b0c1b0e318e86a4b4979 to your computer and use it in GitHub Desktop.
powered / perpangkatan
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() { | |
int hasil = 1; | |
int angka = 3; | |
int pangkat = 3; | |
for (int i = 1; i <= pangkat; i++) { | |
hasil *= angka; | |
} | |
cout << "Hasil: " << hasil << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment