8 kyu

Grasshopper - Order of operations

8,803 of 8,804danleavitt0

Description:

Grasshopper Order of Operations

You are running the calculation 2 + 2 * 2 + 2 * 2 and expect to get the answer 32 but instead the function keeps returning 10. Fix the function to make it return 32 without changing the number or the operators.

Fundamentals

Stats:

CreatedOct 2, 2015
PublishedOct 10, 2015
Warriors Trained9957
Total Skips156
Total Code Submissions13164
Total Times Completed8804
JavaScript Completions8803
Total Stars41
% of votes with a positive feedback rating89% of 1496
Total "Very Satisfied" Votes1241
Total "Somewhat Satisfied" Votes195
Total "Not Satisfied" Votes60
Ad
Contributors
  • danleavitt0 Avatar
  • GiacomoSorbi Avatar
  • cliffstamp Avatar
Ad