/***************************************** * File: whatswrong2.c * Date: 10/02/2002 * Author: Kevin Atkinson (TA) * * This code contains several common mistakes. Most of which are * pointed out in the lecture notes. See if you can find them all. * ****************************************/ include int main() { int num; printf("Please enter in a number: "); scanf("%d", num); if (num != 2 || num != 3) { printf("Your number does not equal 2 or 3\n"); } return 0; }