zomglolz
public text v1 · immutableQuestion 2a
A message should be displayed indicating whether a specific price is equal to 111 or not.
if (price != 111)
cout << "Price = 111";
else
cout << "Price is not 111";
Question 2b
We want to swop the values of a and b if a < b:
if (a < b)
{
a = b;
b = a;
}