// 22.5HV2 Software Engineering II // Unit 3 Exercise 2 #include #include "imperial.h" void main() { Imperial w1, w2; cout << "Please enter weight 1: "; cin >> w1; cout << "Please enter weight 2: "; cin >> w2; cout << endl << w1 << " + " << w2 << " = " << w1+w2 << endl; if ( w1 < w2 ) cout << endl << w2 << " - " << w1 << " = " << w2-w1 << endl; else cout << endl << w1 << " - " << w2 << " = " << w1-w2 << endl; if (w1>w2) cout << endl << w1 << " > " << w2 << endl; if (w1= " << w2 << endl; if (w1==w2) cout << endl << w1 << " == " << w2 << endl; if (w1!=w2) cout << endl << w1 << " != " << w2 << endl; }