Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int sum( int q, int w, int e, int r, int t)
- {
- int y;
- y=q+w+e+r+t;
- return y;
- }
- int main ()
- {
- int x,y;
- int a[5];
- for(x=0; x<5; x++)
- {
- printf("vuvedi %d chislo (%d ot obshto 5) \n",(x+1),(x+1));
- scanf("%d",&a[x]);
- }
- y=sum(a[0], a[1], a[2], a[3], a[4]);
- printf("sumata na tezi 5 chisla e %d \n", y);
- system ("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement