fork(1) download
  1. #include <stdio.h>
  2. int sum(int m,int n){
  3. return m+n;
  4. }
  5. int func(int n){
  6. if(n<0){
  7. n=-n;
  8. }
  9. return n;
  10. }
  11.  
  12. int main(void) {
  13. // your code goes here
  14. int l,n=-2,m=3;
  15. l=sum(func(n),func(m));
  16. printf("%dの絶対値と%dの絶対値の和は%d",n,m,l);
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
-2の絶対値と3の絶対値の和は5