fork download
  1. #include <stdio.h>
  2.  
  3. int sum(int a, int b)
  4. {
  5. return a + b;
  6. }
  7.  
  8. int main()
  9. {
  10. int x = 3, y = 4;
  11.  
  12. if (x < y)
  13. {
  14. printf("%d\n", sum(x, y));
  15. }
  16.  
  17. printf("Summation program\n", sum(x, y));
  18. return 0;
  19. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
7
Summation program