The Last Post Wins

Status
Not open for further replies.
Code:
#include <iostream>

using namespace std;

int main()
{
     cout << "Enter a number: ";
     int number;
     cin >> number;
     if (number == 1)
          cout << "Sonicdude41 wins!  :D";
     else if (number > 1)
          cout << "You lose!  :D";
}
 
Sonicdude41 said:
Code:
#include <iostream>

using namespace std;

int main()
{
     cout << "Enter a number: ";
     int number;
     cin >> number;
     if (number == 1)
          cout << "Sonicdude41 wins!  :D";
     else if (number > 1)
          cout << "You lose!  :D";
}
Well then number=2
 
Numner said:
Sonicdude41 said:
Code:
#include <iostream>

using namespace std;

int main()
{
     cout << "Enter a number: ";
     int number;
     cin >> number;
     if (number == 1)
          cout << "Sonicdude41 wins!  :D";
     else if (number > 1)
          cout << "You lose!  :D";
}
Well then number=2
You just lost, sir. >:)
 
Status
Not open for further replies.
Back
Top