Don't know what to call this maybe double quotes

#include "stdafx.h"
#include <stdio.h>
#include <iostream>
using namespace std;


void add(int num1, int num2);
void subtract(int num1, int num2);
void multiply(int num1, int num2);
void divide(int num1, int num2);
//MAIN FUNCTION
void main()
{
int num1;
int num2;

cout << "This program is a basic calculator";
cout << "\n\n";

cout << "Enter number 1: ";
cin >> num1;

cout << "Enter number 2: ";
cin >> num2;

cout << "\n\n";
//CALCULATOR
add(num1, num2);
cout << endl;
subtract(num1, num2);
cout << endl;
multiply(num1, num2);
cout << endl;
divide(num1, num2);
}
//ADD FUNCTION
void add(int num1, int num2)
{
cout << "Number 1 + Number 2 = " << num1+num2;
}
//SUBTRACT FUNCTION
void subtract(int num1, int num2)
{
cout << "Number 1 - Number 2 = " << num1-num2;
}
//MULTIPLY FUNCTION
void multiply(int num1, int num2)
{
cout << "Number 1 * Number 2 = " << num1*num2;
}
//DIVIDE FUNCTION
void divide(int num1, int num2)
{
cout << "Number 1 / Number 2 = " << num1/num2;
}



Right now the answer displays ex.) Number 1 + Number 2 = answer.
How would i make it so instead of displaying Number 1 + Number 2 =, it displays actual numbers you put in. EX.) if you entered the numbers 8 and 4, it displays 8 + 4 = answer.
The same way you output your answer. It's the same principle; output the variable instead of some text.
Ok. Thank you.
Topic archived. No new replies allowed.