fork download
  1. #include <stdio.h>
  2.  
  3. int min3(int x ,int y, int z)
  4. {
  5. int min = x;
  6.  
  7. if (y < min) min = y;
  8. if(z < min) min = z;
  9. return(min);
  10. }
  11.  
  12.  
  13. int main(void) {
  14.  
  15. int na=5, nb=30, nc=76;
  16.  
  17. puts("pllease output three national number.");
  18. printf("national number1:");
  19. printf("national number2:");
  20. printf("national number3:");
  21.  
  22. printf("It is %d that least national number of three.\n" , min3(na,nb,nc));
  23.  
  24.  
  25. // your code goes here //
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
pllease output three national number.
national number1:national number2:national number3:It is 5 that least national number of three.