Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n , i = 0 , soma = 0 , num ;
- scanf ("%d" , &n) ;
- while (i < n)
- {
- scanf ("%d" , &num) ;
- if (num % 2 == 0 && num % 5 == 0) soma++ ;
- i++ ;
- }
- printf("Existem %d números que são pares e múltiplos de 5\n" , soma) ;
- return 0 ;
- }
Advertisement
Add Comment
Please, Sign In to add comment