Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var firstEquation = ['2', 'x', '+', '1', 'y', '=', '8'];
- var secondEquation = ['3', 'x', '-', '1', 'y', '=', '7'];
- if ( firstEquation[1] > secondEquation[1] ) {
- print("Outcome 1");
- } else {
- if ( secondEquation[1] > firstEquation[1] ) {
- print("Outcome 2");
- } else {
- if ( firstEquation[1] == secondEquation[1] ) {
- print("Else");
- }
- }
- }
Add Comment
Please, Sign In to add comment