fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int k = 0;
  6. if (int d = k*50) {
  7. cout << "hello " << d << endl;
  8. } else {
  9. cout << "goodbye " << d << endl;
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
goodbye 0