Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //This code is a exercise of SPOJ http://br.spoj.pl/
- //This code was developed by Victor Mello Floriano
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int x;
- int quant;
- scanf("%d",&quant);
- int i, soma=0;
- for(i = 0;i<quant;i++)
- {
- scanf("%d",&x);
- soma = soma + x;
- }
- printf("%d",soma);
- }
Advertisement
Add Comment
Please, Sign In to add comment