click here☝️☝️and answer me plz it's very urgent
Attachments:
Answers
Answered by
0
Explanation:
#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;
}
Answered by
1
Answer:
1c
2p
3c
4p
5p
6c
7p
8c
9c
10c
Similar questions