Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IFF - Introdução à Programação
- //Lista de Exercicios - 33
- #include<stdio.h>
- #include<locale.h>
- int main(){
- setlocale(LC_ALL,"Portuguese");
- int numero, i, soma = 0;
- for(i=0;i<10;i++){
- printf("Entre com o %dº valor: ",i+1);
- scanf(" %d",&numero);
- soma+=numero;
- }
- printf("Resultado da soma dos valores: %d", soma);
- }
Advertisement
Add Comment
Please, Sign In to add comment