Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main(){
- int i=0,n,prod=1;
- printf("digite varios valores inteiros e positivos:\n");
- while(i<=n){
- scanf("%d",&n);
- if(n==0)
- break;
- if(n%2==0){
- prod=prod*n;}
- i++;
- }
- printf("o produto sera %d\n",prod);
- system ("pause");
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment