What is printed by the following program? Suppose the input is:
20 15
#include
using namespace std;
const int NUM = 10;
const double X = 20.5;
int main()
{
int a, b;
double z;
char grade;
a = 25;
cout << "a = " << a << endl;
cout << "Enter two integers: ";
cin >> a >> b;
cout << endl;
cout << "The numbers you entered are "
<< a << " and " << b << endl;
z = X + 2 * a - b;
cout << "z = " << z << endl;
grade = 'A';
cout << "Your grade is " << grade << endl;
a = 2 * NUM + z;
cout << "The value of a = " << a << endl;
return 0;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.