Advertisement
mhdew

Expert Practice 1

Jun 7th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. int add(int *a, int *b)
  4. {
  5. int sum=*a+*b;
  6.  
  7. return sum;
  8. }
  9.  
  10. int main()
  11. {
  12. int x, y;
  13. scanf("%d %d", &x,&y);
  14.  
  15. int sum=add(&x,&y);
  16.  
  17. printf("%d\n", sum);
  18.  
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement