fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x = -1 ;
  6. cout << "put a value for variable x : ";
  7. cin >> x;
  8. cout << endl;
  9.  
  10. if(x == -1)
  11. cout << "MIA XARA OLA" << endl;
  12. else
  13. cout << "PERIERGA TA PRAGMATA" << endl;
  14. return 0;
  15. }
Success #stdin #stdout 0s 4396KB
stdin
Standard input is empty
stdout
put a value for variable x : 
MIA XARA OLA