/* File: if2.c Testing if statements. What happens if you use = instead of ==? */ #include int main() { int n, m, quotient ; n = 17 ; m = 5 ; if (m = 0) { // NOTE FORGOT to use == printf("Don't divide by zero!\n") ; } else { printf("m = %d\n", m) ; quotient = n / m ; printf("%d divided by %d is %d (integer division)\n", n, m, quotient) ; } return 0 ; }