Solution for Exercise 5-7
ex0507
#include <stdio.h> int main() { printf("The answer is %d\n",0+50*1-60-60*0+10); return(0); }
Notes
* A human would read the equation left-to-right, solving the problem in order. The result most likely would be 10 because everything before that value is multiplied by zero: 0 + 10 = 10. But that's not the way the computer does its math.
Copyright © 1997-2024 by QPBC.
All rights reserved