fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int y, x;
  7. cin>> x;
  8. if (x<5) y=(x*x)-3*x+4;
  9. else y=x+7;
  10. cout <<y;
  11. return 0;
  12. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
4