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