Here is what I have now... I still wouldnt mind any suggestionsCode:#include <iostream.h> typedef short int si; int main() { si theShoe = 20; si theTie, theWatch; cout << "enter the price for your watch\n"; cin >> theWatch; cout << "Enter a price for your tie\n"; cin >> theTie; { if ( (theTie > theWatch) && ( (theTie + theWatch) > theShoe) ) cout << "the shoe is less then the watch and the tie combined\n"; else if ( (theTie == theWatch) ^ ((theTie + 10) == theWatch) ) cout << "the tie is either worth as much as the watch or the tie is 10$ more then the then watch\n"; else cout << "the watch is worth more then everything\n"; } return 0; }
thanks,
Bb





Reply With Quote