I need to make a program that multiplies the numbers entered by the user, and when it says 0 (zero), the program shows the multiplication of the numbers entered. However, I am in doubt as to how I will do this without clearing my multiplication.
else if(op==2){
printf("Foi escolhida a multiplicacao:\n\n");
do{
printf("Informe os valores desejados e 0 (zero) para concluir:");
scanf("%d", &valor);
mult= mult*valor;
result=mult;
}while(valor!=0);