18 lines
419 B
C++

#include <iostream>
using namespace std;
int main() {
int currentPrice;
int lastMonthsPrice;
cin >> currentPrice;
cin >> lastMonthsPrice;
/* Type your code here. */
cout << "This house is $" << currentPrice << ". The change is $" << currentPrice-lastMonthsPrice << " since last month." << endl
<< "The estimated monthly mortgage is $" << (currentPrice*0.051)/12 << "." << endl;
return 0;
}