fork download
  1. #include<stdio.h>
  2. #include<ctype.h>
  3. #include<stdlib.h>
  4. int main(void)
  5. {
  6. char litera;
  7. printf("prosze podac znak\n");
  8. litera=getchar();
  9. if(isalpha(litera)) printf("podano litere\n");
  10. else if(isdigit(litera)) printf("podano liczbe\n");
  11.  
  12. if(isalpha(litera)){
  13. litera=tolower(litera);
  14. putchar(litera);
  15. putchar(' ');
  16. putchar(toupper(litera));
  17. printf("\n");
  18. }
  19. system("pause");
  20. return 0;
  21. }
Success #stdin #stdout #stderr 0s 2116KB
stdin
b
stdout
prosze podac znak
podano litere
b B
stderr
sh: 1: pause: not found