help with myn program!!!

Write a program in C++ which adds, subtracts, multiplies, divides and perform exponentiation on two specific numbers. The two numbers should be entered by the user. Each output should include a string describing what the numerical output is being displayed.

Use the if-else-if ladder so that the user is able to select which mathematical function to perform. Make sure the program has a neat menu for the user to use to select their choice. Also, avoid having the computer perform a division by zero if the user attempts it by outputting a warning message in its place. Include your C++ source code as well as the output of your program in your submission.
#include <iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main() {

int a, b;
int sum;
int difference;
int product;
double base;
int exponentiation;

cout << "Enter two integers : ";
cin >> a >> b;



sum = a+ b;
difference = a - b;
product = a * b;
exponentiation = a ^ b;
}

cout << "The sum, difference, product, and exponentiation "
cout << a << " and " << b << " are "
cout << sum << ", "
cout << difference << ", "
cout << product << ", "
cout << exponentiation <<","


++a;
--b;
cout << "a after increment is " << a << endl;
cout << "b after decrement is " << b << endl;



return 0;
}
What's the problem you are facing , hope it is displyed what you entered after the operation and use the code format for better understanding your code..
Topic archived. No new replies allowed.