fork download
  1. /**************************************************************************
  2. * FILE NAME: 2020142200_임승민_quiz 4-2.c *
  3. * PURPOSE: Quiz 4-2 *
  4. * EXTERNAL VARIABLES: *
  5. * Name Type I/O Description *
  6. * -------------------------------------------------- *
  7. * *
  8. * CONSTRAINTS & RESTRICTIONS: *
  9. * This code was tested by using gcc compiler in Windows environment *
  10. * *
  11. * *
  12. * DEVELOPMENT HISTORY: *
  13. * Date Author Release No. Description of change *
  14. * -------------------------------------------------- *
  15. * 9/22/2020 임승민 v1.0.0 Initial commit *
  16. **************************************************************************/
  17.  
  18. #include <stdio.h>
  19.  
  20. int main() {
  21. int a, b, c;
  22. printf("정수 3개를 입력하세요.");
  23. printf("세 정수의 합은 &d 입니다.", add_3_val(a, b, c));
  24. printf("세 정수의 곱은 &d 입니다.", mul_3_val(a, b, c));
  25. }
  26. int add_3_val(int a, int b, int c){
  27. return a+b+c;
  28. }
  29. int mul_3_val(int a, int b, int c){
  30. return a*b*c;
  31. }
  32.  
  33.  
Success #stdin #stdout 0s 4468KB
stdin
Standard input is empty
stdout
정수 3개를 입력하세요.세 정수의 합은 &d 입니다.세 정수의 곱은 &d 입니다.