Write an entire program that will ask the user for their favorite decimal number. Print the number without the decimal point.
I got my code done so far but it not appeared that im going right.
using namespace std;
int main ()
{
//Input variables
double FAV_DECIMAL;
//Prompt the user for input
cout << " Enter your favorite decimal number: ";
cin >> FAV_DECIMAL;
cout << fixed << showpoint<< setprecision(3) << "FAV_DECIMAL = " << FAV_DECIMAL
<< endl;
system("PAUSE");
return 0;
}

New Topic/Question
Reply



MultiQuote





|