Advertisement
a53

atbash

a53
Sep 22nd, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <fstream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. char c;
  7. ifstream f("atbash.in");
  8. ofstream g("atbash.out");
  9. while(f>>c)
  10. g<<(char)('Z'-c+'A');
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement