Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n, x, i, zbir=0;
- scanf("%d", &n);
- i=1;
- while(i<=n)
- {
- scanf("%d", &x);
- zbir+=x;
- i++;
- }
- printf("%d", zbir);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement