fork download
  1. #include <stdio.h>
  2. int square (int);
  3. int sum(int,int);
  4. int max(int,int);
  5. int main(void) {
  6. int a,b;
  7. a=3;
  8. b=5;
  9. printf("%d",max(square(sum(a,b)),sum(square(a),square(b))));
  10.  
  11. return 0;
  12. }
  13. int square(int x){
  14. return x*x;
  15.  
  16. }
  17. int sum(int x,int y){
  18. return x+y;
  19.  
  20. }
  21. int max(int x,int y){
  22. return(x>y)?x:y;
  23.  
  24. }
  25.  
Success #stdin #stdout 0s 544KB
stdin
Standard input is empty
stdout
64