Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <ctype.h>
- #include <string.h>
- int main(void) {
- char a[2000];
- scanf("%s", a);
- for(int i = 0; i < strlen(a); i++) {
- if(isalpha(a[i])) {
- printf("%c - bukva\n", a[i]);
- }
- if(isdigit(a[i])) {
- printf("%c - cifra\n", a[i]);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment