fork download
  1. #include <stdio.h>
  2.  
  3. int cesar_encrypted(int x)
  4. {
  5. return (x+3 > 90 ? ((x+3) % 90 + 64) : x+3);
  6. }
  7.  
  8.  
  9. void test_cesar_encrypted(void)
  10. {
  11. int x;
  12. scanf("%d", &x);
  13. int z = cesar_encrypted(x);
  14. printf("%d\n", z);
  15. }
  16.  
  17. int main(){
  18. test_cesar_encrypted();
  19.  
  20. }
Success #stdin #stdout 0s 2160KB
stdin
90
stdout
67