fork(2) download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6. char napis[202];
  7. while( (fgets(napis, 200, stdin)))
  8. {
  9. int i=0;
  10. int k=0;
  11. k=(strlen(napis));
  12. for(i=0; i<k; i++)
  13. {
  14. if (napis[i]==12)
  15. {
  16. printf("\n");
  17. }
  18. if (napis[i]==32)
  19. {
  20. printf(" ");
  21. }
  22. else if (napis[i]>118)
  23. {
  24. printf("%c", napis[i]-23);
  25. }
  26. else
  27. {
  28. printf("%c", napis[i]+3);
  29. }
  30. }
  31. }
  32. return 0;
  33. }
  34.  
Success #stdin #stdout 0s 9432KB
stdin
ABCDEFGHIJKLMNOPQRSTUVWXQYZ
stdout
DEFGHIJKLMNOPQRSTUVWXYZ[T\]