Quick actions

cmd+k|ctrl+k

Navigation

Languages

calculadora

Snippet info

Language

C

Visibility

public

Author

fernandanoronha.coelho

Created

2019-05-26T15:01:51Z

Updated

2019-05-26T15:01:51Z

#include <stdio.h>
int main()
{
    int n, num, soma=0, teste=0;
    scanf("%d", &n);
    while(n!=0)
    {
     for(int i=1; i<=n; i++)
     {
        scanf("%d", &num);

        soma += num;

     }
    teste++;
    printf("Teste %d\n%d\n\n", teste, soma);
    scanf("%d", &n);soma=0;
    }
    return 0;
}
INFO