Output?

closed account (zTUSz8AR)
What is the output of the following code?

1
2
3
4
5
6
 int num = 17;                           //Line 1 
double gpa = 3.85;                  //Line 2 
bool done;                               //Line 3

done = (num == static_cast<int>( (2 * gpa + 9.3));    //Line 4 
cout << "The value of done is: "<< done << endl;     //Line 5 
Topic archived. No new replies allowed.