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