fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int rep,valor,soma;
  6.  
  7. while(rep < 10) {
  8.  
  9. //printf("Digite um valor : ");
  10. scanf("%d",&valor);
  11.  
  12. soma += valor;
  13.  
  14. rep = rep + 1;
  15.  
  16. }
  17.  
  18. printf("Total dos valores : %d ", soma);
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 9432KB
stdin
10
10
10
10
10
10
10
10
10
10
stdout
Total dos valores : 150505460