Solution for Exercise 5-7

ex0507

#include <stdio.h>

int main()
{
    printf("The result is %d\n",0+50*1-60-60*0+10);
    return(0);
}

Output

The result is 0

Notes

* A human would read the equation left-to-right, solving the maths in order. The result most likely would be 10 because everything before this value is multiplied by zero: 0 + 10 = 10. But that's not the way the computer calculates things.