fork download
  1. #include <stdio.h>
  2.  
  3. int multiply (int, int);
  4. int main (void)
  5. {
  6. int a;
  7. int b;
  8. int total;
  9. printf ("Input two numbers to multiply\n");
  10. scanf ("%d%d", &a, &b);
  11. total = multiply (a, b);
  12. printf ("Total is: %d\n", total);
  13. return 0;
  14. }
  15.  
  16. int multiply (int a, int b)
  17. {
  18. int c;
  19. c=a*b;
  20. return c;
  21. }
  22.  
Success #stdin #stdout 0s 5320KB
stdin
5 6
stdout
Input two numbers to multiply
Total is: 30