Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int number,product = 1;
- do
- {
- printf("Entre com um numero inteior e positivo :\n");
- scanf("%d",&number);
- if (number == 0)
- {
- continue;
- }
- if (number % 2 == 0)
- {
- product = product*number;
- }
- }while (number != 0);
- printf("Produto dos pares = %d\n",product);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment