My instructor assigns Design and Implement a C++ program to do math. Accept two integers from the user and Output their sum, difference, product, quotient, remainder and division result; raise the second integer as a power to the first integer.
Outputs should be formatted and aligned in a tubular form. I've managed to complete everything from this point on. Im currently stuck, I don't understand how I should format the code on raising the power to the first
#include<iostream>
#include<iomanip>
using namespace std;
int main ( )
{
int num1, num2;
cout << "enter two integers:";
cin >> num1, num2;
#include <iostream>
#include <cmath> // include this for the function
usingnamespace std;
int main() {
int x = 2;
int y = 5;
int sum = pow(x, y); // This is 2 to the power of 5 - 2^5
cout << "2^5 = " << sum;
//http://www.cplusplus.com/reference/cmath/pow/return 0;
}