Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int izbroji (char *p) {
- int br_znakova=0;
- while (*p!='\0') {
- if (*p>='0' && *p<='9') br_znakova++;
- p++;
- }
- return br_znakova;
- }
- int main () {
- int n;
- char x[]="020-A-234";
- n=izbroji(x);
- printf("%d",n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement