Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int add(int a,int b);
  4. void print(int apotelesma);
  5.  
  6.  
  7. int main()
  8. {
  9. int x,y;
  10. printf("\n Dose arithmo : ");
  11. scanf("%d",&x);
  12. printf("\n Dose arithmo : ");
  13. scanf("%d",&y);
  14. print(add(x,y));
  15. }
  16.  
  17. void print(int apotelesma)
  18. {
  19. printf("%d",apotelesma);
  20. }
  21. int add(int a,int b)
  22. {
  23. return a+b;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement