ok so say I have code a

++++++++++++++++++++++++++++++++++++

Code:

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
//Enter Variables
int number;
cout << "Enter Variable a: ";
cin >> number;
int a = number;
cout << "Enter Variable b: ";
cin >> number;
int b = number;
cout << "Enter Variable c: ";
cin >> number;
int c = number;
if (a > b && a > c);
return a;
cout << "This is your highest number(" << a << ")";
if (b > a && b > c);
return b;
cout << "This is your highest number(" << b << ")";
if (c > a && c > b);
return c;
cout << "This is your highest number(" << c << ")";
return 0;
}

+++++++++++++++++++++++++++++++++++++++++++++

and code b

+++++++++++++++++++++++++++++++++++++++++++++

Code:

//mortgage Calculator
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
//declaring variables
float p = 0; // Loan Amount
float i = 0; //Interest Rate APR
int l = 0; //Term
float j = i/(12 * 100); // Calculate Interest
int n = l * 12; // Number of Months
double m = 0; // Monthly Payment
int choice = 0;
cout << "Enter the loan amount:" << endl;
cin >> p;
cout << "Enter term of loan:" << endl;
cin >> l;
cout << "The interest rate is:" <<endl;
cin >> i;
//after user input, j and n must be recalculated, otherwise they will stay 0 !!!!
j = i/(12 * 100);
n = l * 12;
//calculating the mortgage using this formula
m = (p*j)/(1-pow((1+j),-n));
//prints out monthly payment
cout << "The monthly payment is: $" << m << endl;
return 0;
}

+++++++++++++++++++++++++++++++++++++++++++++++++++++

if I wanted them to both be in the same .cpp file how would I make it go through each and display results going from one to the other

like in this case it telling me my integer the ntelling me theloan interest rate and waiting for the user to push a key to see the results then idling at the end I know I am not explaining this all properly and I completely agree that once I understand how to do this the first time it becomes easier I jsut cannot find a step by step how to or a even a good example