Q:

Parenthesize the following expression to show how it is evaluated

0

Parenthesize the following expression to show how it is evaluated. Test your answer by compiling the expression (without parentheses) and printing its result.

12 / 3 * 4 + 5 * 15 + 24 % 4 / 2

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include <iostream>

int main() {
  // (((12 / 3) * 4) + (5 * 15)) + ((24 % 4) / 2) = 91
  std::cout << 12 / 3 * 4 + 5 * 15 + 24 % 4 / 2 << std::endl;

  return 0;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now