Skip to content

Instantly share code, notes, and snippets.

@Khuirul-Huda
Created September 23, 2023 13:50
Show Gist options
  • Save Khuirul-Huda/8583e1770b85b0c1b0e318e86a4b4979 to your computer and use it in GitHub Desktop.
Save Khuirul-Huda/8583e1770b85b0c1b0e318e86a4b4979 to your computer and use it in GitHub Desktop.
powered / perpangkatan
#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