fork download
  1. #include <stdio.h>
  2. void add (int x ,int y) {
  3. return x + y;
  4. }
  5.  
  6. int main () {
  7.  
  8. int num1, num2;
  9.  
  10. printf("Enter a number:\n");
  11. scanf("%d", &num1);
  12.  
  13. printf("Enter a number:\n");
  14. scanf("%d", &num2);
  15.  
  16. add(num1,num2);
  17.  
  18. return 0;
  19.  
  20. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
Enter a number:
Enter a number: