Guest User

Untitled

a guest
Nov 20th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. var firstEquation = ['2', 'x', '+', '1', 'y', '=', '8'];
  2. var secondEquation = ['3', 'x', '-', '1', 'y', '=', '7'];
  3.  
  4. if ( firstEquation[1] > secondEquation[1] ) {
  5. print("Outcome 1");
  6. } else {
  7. if ( secondEquation[1] > firstEquation[1] ) {
  8. print("Outcome 2");
  9. } else {
  10. if ( firstEquation[1] == secondEquation[1] ) {
  11. print("Else");
  12. }
  13. }
  14. }
Add Comment
Please, Sign In to add comment