All pastes #535145 Raw Edit

zomglolz

public text v1 · immutable
·published 2007-06-04 00:40 UTC
rendered paste body
Question 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; 
}