A função não retorna valor, mas cout o exibe
Estou aprendendo C ++ há um tempo e tentei criar uma função simples que retorna a área de uma sala. A declaração de retorno não gera o valor, no entanto, usando cout, posso ver o resultado. Estou faltando alguma coisa aqui?
#include <iostream>
using namespace std;
int Area(int x, int y);
int main()
{
int len;
int wid;
int area;
cout << "Hello, enter the length and width of your room." << endl;
cin >> len >> wid;
cout << "The area of your room is: ";
Area(len, wid);
return 0;
}
int Area(int len, int wid)
{
int answer = ( len * wid );
return answer;
}