Saved Bookmarks
| 1. |
Find power of a number program in c++ |
|
Answer» C++ PROGRAM to CALCULATE power of a number using pow functionusing namespace STD;int main() { int base, exp ;COUT << "Enter base and exponent\n" ; cin >> base >> exp ;cout << base << "^" << exp << " = " << pow (base, exp ); return 0; }Explanation: |
|