Advertisement
zlateL86

prosta(masa)funkcija

May 28th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int zbir(int x, int y)
  5. {
  6.     int r;
  7.     r=x+y;
  8.     return r;
  9. }
  10.  
  11.  
  12. int main()
  13. {
  14.     int a,b;
  15.     scanf("%d %d", &a, &b);
  16.  
  17.     int rez;
  18.     rez=zbir(a, b);
  19.     printf("%d", rez);
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement