diff options
Diffstat (limited to 'c/las12uvas/481_ajedrezAsistidoPorComputador.cpp')
-rw-r--r-- | c/las12uvas/481_ajedrezAsistidoPorComputador.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/c/las12uvas/481_ajedrezAsistidoPorComputador.cpp b/c/las12uvas/481_ajedrezAsistidoPorComputador.cpp new file mode 100644 index 0000000..1a3c744 --- /dev/null +++ b/c/las12uvas/481_ajedrezAsistidoPorComputador.cpp @@ -0,0 +1,15 @@ +#include <iostream> + +using namespace std; + +int main() { + char row, col; + cin >> row; + cin >> col; + while (row != '0') { + row = 153 - row; // 'h' - (row - '1') + cout << row << col << endl; + cin >> row; + cin >> col; + } +} |