Untitled
Anonymous
plain_text
12/06/2023 1:01 AM
328 B
13
Indexable
#include <stdio.h>
int main() {
int produto = 1;
int v = 1;
while (v != 0) {
scanf("%d", &v);
if (v == 0){
break;
produto = produto * v;
}
}
printf("%d\n", produto);
return 0;
}
Editor is loading...
Leave a Comment