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