1.17

 avatar
unknown
c_cpp
5 months ago
435 B
11
Indexable
#include <iostream>
using namespace std;

int main() {
   int currentPrice;
   int lastMonthsPrice;

   cin >> currentPrice;
   cin >> lastMonthsPrice;

   cout << "This house is $" << currentPrice << ". The change is $" 
        << (currentPrice - lastMonthsPrice) << " since last month." << endl;
   cout << "The estimated monthly mortgage is $" 
        << (currentPrice * 0.051 / 12) << "." << endl;

   return 0;
}
Editor is loading...
Leave a Comment