I am trying to compile a program that will calculate the value of a fixed deposit at the time of maturity. It lets me input the amount of deposit and the number of year. After I enter in the years and hit enter the program shuts down but does not return the amount of deposit at the time of maturity. This what I have so far, any help will be greatly appreciated.
#include "stdafx.h"
#include <iostream>
int main()
{
using namespace std;
int deposit;
int years;
int amount();
amount = ( deposit * .10 * years )/ 100;
cout << "Please enter deposit: ";
cin >> deposit ;
cout << endl;
cout << "Enter number of years: ";
cin >> years ;
cout << endl;
cout << "Once matured balance is " << amount << ".";
cout << endl;
return 0;