fork download
  1. #include <stdio.h>
  2. int main ( )
  3. {
  4. int a = -10; /* declare three variables of type integer */
  5. int b = 4;
  6. int c;
  7. int z;
  8.  
  9. c = a * -b; /* minus b, as in -b, is a unary operator on just b */
  10. scanf("%d", &z);
  11. printf (" %i \n", z);
  12.  
  13. return (0); /* success */
  14. }
Success #stdin #stdout 0s 5316KB
stdin
22
stdout
 22