Question: Rewrite the following program so that it is properly formatted. #include #include using namespace std; const double X = 13.45; const int Y=34; const char
Rewrite the following program so that it is properly formatted.
#include
#include
using namespace std;
const double X = 13.45; const int Y=34;
const char BLANK= " ";
int main()
{string firstName,lastName;int num;
double salary;
cout<<"Enter first name: "; cin>> firstName; cout< cout<<"Enter last name: "; cin >>lastName;cout< cout<<"Enter a positive integer less than 70:"; cin>>num;cout< cout<<"Name: "< <<"Wages: $"< cout<<"X Y = " << X Y << endl; return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
