#include <iostream>
#include <conio.h>
#include <conio.c>
#define SHOREHIGH "Welcome to Shore High School!! "
typedef char ZOO:
typedef int USHORT;
USHORT useranswer;
int main()
{
USHORT classrooms(20);
USHORT teachers=2*20;
textcolor(9);
textbackround(7);
cout << SHOREHIGH;
cout << "\nHeres a math problem. There are 20 classrooms, 500 students in the entire school, and 2 teachers per classroom. How many teachers are there in the entire school?";
cin >> useranswer;
if (useranswer==teachers) {
cout << "\nYou're absolutely correct"; }
if (useranswer!=teachers) {
cout << "\nWRONG!! Try again\n"; }
getch();
return 0;
}
Have a better method of making this program?



LinkBack URL
About LinkBacks



