1
int numeros, calculo, soma;
numeros = 0;
calculo = 0;
while (calculo > 0) {
printf("Digite o número: ");
scanf("%d", &numeros);
calculo++;
}
soma = calculo + soma;
printf("A soma entre os valores digitados é de: %d", soma);
I want to make the while
repeat only 4 times asking the question "Enter a number" receiving a value and then adding these numbers and showing the value on the screen.
It worked obg. And yes, it is mandatory to use While, unfortunately kk.
– Kyatsu
See on [tour] the best way to say thank you.
– Maniero