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