Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- char c;
- printf("Digitare un char: ");
- scanf("%c",&c);
- if (c >47 && c <58) {
- printf("il carattere scritto รจ un numero: %c", c);
- } else if ((c> 64 && c < 91) || (c > 96 && c < 123)) {
- printf("il carattere scritto รจ una lettera dell'alfabeto: %c", c);
- } else {
- printf("il carattere inserito non รจ alfanumerico");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment