fork download
  1. #include <iostream>
  2. #include <stdio.h>
  3.  
  4. bool oper(int x, int y);
  5.  
  6. int main() {
  7. int x = 0;
  8. int y = 0;
  9.  
  10. std::cin >> x;
  11. std::cin >> y;
  12.  
  13. if(oper(x, y)) {
  14. std::cout << "\nx = " << x <<
  15. ", y must be < " << x << "\n";
  16. } else {
  17. std::cout << "y is < x!" << "\n";
  18. }
  19. }
  20. bool oper(int x, int y) {
  21.  
  22. return (x > y);
  23. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
y is < x!