Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <time.h>
- int main () {
- int a;
- long int suma=0;
- printf("Unosite brojeve (-1 za kraj) :");
- while (a!=-1) {
- scanf("%d", &a);
- suma+=a;
- }
- printf("Suma unesenih brojeva je: %ld", suma);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement