Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5. void topla(int a, int b);
  6. int main(void) {
  7.  
  8. int a,b;
  9. printf("1. sayiyi gir: ");
  10. scanf("%d", &a);
  11. printf("2. sayiyi gir: ");
  12. scanf("%d", &b);
  13. topla(a,b);
  14. return 0;
  15.    
  16. }
  17.  
  18. void topla (int a, int b)
  19. {
  20.  
  21. int sonuc;
  22. sonuc=a+b;
  23. printf("sonuc: %d", sonuc);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement