Here is the code :
#include <iostream>
using namespace std;
int main(void)
{
int number
cout<< "Hello Noah!\n"
cout<< "Play a Game?\n"
cout << "How about Chess?\n"
cout << "One (1) if yes two (2) for no";
int number
cin (number);
if (number==1);
cout<< "What Game?\n"
cout<< " three (3) for Chess\n"
cout<< "four (4) Checkers\n"
cout<< "five (5) for Battleship";
if (number == 3)
cout<< "Check Mate!!";
if (number == 4)
cout<< "I Win!";
if (number == 5)
cout<< "I Sunk Your Ship!";
if (number == 2)
cout<< "Good Bye";
return 0;
}
Could You figure out whats wrong ?
This post has been edited by no2pencil: 25 March 2012 - 03:31 AM
Reason for edit:: Added code tags

New Topic/Question
Reply



MultiQuote






|