Zeke the Explorer

October 17, 2008

My most complicated program yet…I was very happy…..enjoy

Filed under: Uncategorized — Chris @ 2:37 am

#include

using namespace std;
int main()
{

int score;

cout < < "Enter final score: " ;
cin >> score ;

if( score < 500 )
{
cout << "You play like JC" << endl;
}

else if( score > 500 )

{
cout < < " You play like CH" << endl;
}

else
{
cout << " That is INSANE " << endl;
}

cout << endl << "Press the enter key to exit";
cin.ignore(cin.rdbuf()->in_avail() + 1);

return 0;
}

2 Responses to “My most complicated program yet…I was very happy…..enjoy”

  1. Jim Thompson Says:

    Why is a score of exactly 500 considered insane?

  2. Chris Says:

    Well…Nothing really…haha..It was just something one of my buddies told me to write. He wrote out a paragraph of what the program should do, to see if I could do it from memory. So, there is really no significance to it being insane at all. haha. but I thought it was a huge improvement, even though it is a very simple program. You should see my others. I also created a formula program.

Powered by WordPress