Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int funkcija(int n) {
- int brojac = 0;
- while(scanf("%d", &n)) {
- int posledna_cifra = n % 10;
- if(posledna_cifra % 3 == 0) {
- brojac++;
- }
- }
- return brojac;
- }
- int main(int argc, const char * argv[]) {
- int n;
- printf("%d\n", funkcija(n));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement