so anyone can help me to make this code look better lol i got no idea if im following correct programing styles or whatever.Code:#include <iostream> #include <conio.h>// for getch() using namespace std; int main() { int amount; int years; int month = 12; float payment; cout << "This program calculates your morgage loan payments per month\n"; cout<< "Enter the amount of $ the house costs: "; cin >> amount; cout <<"Enter the years you want to pay off the morgage: "; cin >> years; payment =(amount /years) / 12; cout << "You will have to pay " << payment << " per month\n"; cout << "Press a key to close the screen."; getch(); //this waits for a user to entre any key before it closes return 0; }
aslo the prog works fine but it lacks something. there is no interest, how is interest calculated?