What is the output of the code if a and b have the


What is the output of the following code if a and b have the following values

int a = 6, b = 4;

if (a + b < 10)

a = 5;

else

a = a + 1;

a = a + 2;

cout << a;

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: What is the output of the code if a and b have the
Reference No:- TGS02708391

Now Priced at $10 (50% Discount)

Recommended (99%)

Rated (4.3/5)