Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Compute Power Manually
//clang 3.8.0 #include <iostream> using namespace std; int main() { int exponent; float base, result = 1; cout << "Enter base and exponent respectively: "; cin >> base >> exponent; cout << base << "^" << exponent << " = "; while (exponent != 0) { result *= base; --exponent; } cout << result; return 0; }
run
|
edit
|
history
|
help
0
regex
ghfhfgh
"nearest enclosing namespace"
std::set custom ordering with composition
10 naturalnumbers
Pure virtual function called!
C++ standard
Segment Tree Impl
bank queue
hw1 Os