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