Advertisement
Touch_Grass

Untitled

Apr 29th, 2023
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | Source Code | 0 0
  1.     for (int i = 1; i < ansNums.size(); i++) {
  2.         if (operators[i-1] == "+") {
  3.             out += ansNums[i];
  4.         } else if (operators[i-1] == "-") {
  5.             out -= ansNums[i];
  6.         }
  7.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement