fork download
  1. #include <stdio.h>
  2. //練習問題B
  3. int sum(int x,int y){
  4. return x+y;
  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 0.01s 5280KB
stdin
Standard input is empty
stdout
3と2の和は5