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