fork download
  1. #include <stdio.h>
  2. int max (int x,int y){
  3. return (x>y)? x:y;
  4. }
  5. int ze(int x){
  6. return (x>0)? x:-x;
  7. }
  8. int sanjyou(int x){
  9. return x*x*x;
  10. }
  11. int main(void) {
  12. int a,b;
  13. a=3;
  14. b=-2;
  15. printf("max(|%d|,(%d)^3=%d\n",a,b,max(ze(a),sanjyou(b)));
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
max(|3|,(-2)^3=3