Psychonaut
Senior Member
one small step for man
one giant leap for me
one giant leap for me
#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=2Sonicdude41 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"; }
That's an illegal move.Psychonaut said:
You just lost, sir. >Numner said:Well then number=2Sonicdude41 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"; }