fork download
  1. #include <iostream>
  2. #include <iomanip>
  3. using namespace std;
  4.  
  5. int main() {
  6. double amount=100000, rateMonthly=.1;
  7. cout <<setw(25) << left<< "Loan amount:" << "$ "<< setw(10)<<right << amount << endl;
  8. cout <<setw(25)<< left << "Monthly Interest Rate:"<<" "<<setw(10)<<right<< rateMonthly << " %" << endl;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3412KB
stdin
Standard input is empty
stdout
Loan amount:             $     100000
Monthly Interest Rate:            0.1 %