Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 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(void);
  6. int main(void) {
  7.  
  8. topla();
  9.    
  10. }
  11.  
  12. void topla (void)
  13. {
  14.     int a,b,toplam;
  15.  
  16. printf("ilk sayiyi gir. \n");
  17. scanf("%d", &a);
  18. printf("ikinci sayiyi gir. \n");
  19. scanf("%d", &b);
  20. toplam=a+b;
  21. printf("toplam = %d", toplam);
  22.    
  23.    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement