fork(1) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. using namespace std;
  6. cout << "Hello There please input A number" << endl;
  7. int number;
  8. cin >> number;
  9. if( number >= 2 && number <= 2 )
  10. {
  11. cout << "You have input the wrong number haha" << endl;
  12. }
  13. else
  14. {
  15. cout << "Wow how'd you guessed it?" << endl;
  16. }
  17. }
Success #stdin #stdout 0s 2888KB
stdin
2
stdout
Hello There please input A number
You have input the wrong number haha