fork download
  1. #include <stdio.h>
  2. int sum(int x, int y){
  3. return x+y;
  4. }
  5.  
  6. int main(void) {
  7. int l, n = 2, m = 3;
  8. l = sum(m, n);
  9. printf("%dと%dの和は%d\n", m,n, l);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5300KB
stdin
Standard input is empty
stdout
3と2の和は5