fork download
  1. #include <stdio.h>
  2. int main() {
  3. int a = 5;
  4. int x;
  5.  
  6. if (a >= 0) {
  7. x = a * 15;
  8. } else {
  9. x = a * (-15);
  10. }
  11.  
  12. printf("x = %d\n", x);
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.03s 25940KB
stdin
Standard input is empty
stdout
#include <stdio.h>
int main() {
    int a = 5;
    int x;

    if (a >= 0) {
        x = a * 15;
    } else {
        x = a * (-15);
    }

    printf("x = %d\n", x);

    return 0;
}