Hey, i was trying to make a multiplication word problem type thing and when hit debug it always says what my title is. Here's my code.
#include <iostream>
void main();
{
// Declare Variables!!!
char name[15];
short quantity;
float amount;
float totalSale;
cout << "Enter Customer's Name: ";
cin.getline(name,15);
cout << "Enter the cost: ";
cin >> amount;
cout << "Enter the quantity: ";
cin >> quantity;
totalSale = amount * (float)quantity;
cout << "The Total is: " << totalSale << endl;
}
If you could help, that would be awesome, seeya