justsilly
2010-04-22 15:07:24 UTC
#include
#include
using namespace std;
//Function, input # of apples, output price
int Apple_Price(int num_apples)
{
int apple_price;
apple_price = num_apples * 2;
return apple_price;
}
int main()//Main line of code for apples, input and output here
{
int num_apples;
cout << "Insert the number of apples you want to buy." << endl;
cin >> num_apples >> endl;
cout << Apple_Price(int num_apples) << endl;
}