*Don't use unneccessary #definitions
*Don't use unneccessary typedefs
*Don't use variables when variables aren't needed
Code:
#include <iostream.h>
#include <conio.h>
int main()
{
short userans;
cout << "Welcome to Shore High School!!";
cout << "\nHeres a math problem. There are 20 classrooms, 500 students in the entire \nschool, and 2 teachers per classroom. How many teachers are there in the\nentire school ?";
cin >> userans;
if (userans == 40)
cout << "\nYou're absolutely correct";
else
cout << "\nWRONG!! Try again\n";
getch();
return 0;
}