fork download
  1. #include <stdio.h>
  2.  
  3. int calc(int temp) {
  4. return temp & 1 ? temp + temp << 2 : temp * '2';
  5. }
  6.  
  7. int main() {
  8. printf("a. %d\nb. %d", calc(7), calc(16));
  9. return 0;
  10. }
Success #stdin #stdout 0s 2008KB
stdin
Standard input is empty
stdout
a. 56
b. 800