initial commit

This commit is contained in:
2023-07-16 13:23:25 +00:00
commit c3fa5367c3
85 changed files with 4921 additions and 0 deletions

17
C++/lesson2/task10.cpp Normal file
View File

@ -0,0 +1,17 @@
#include <iostream>
#include <string>
int main() {
std::string value = std::string();
std::cin >> value;
int offset;
std::cin >> offset;
offset = offset % 26 - 'A';
for (char& c : value) {
if (c > 'Z' || c < 'A') {
continue;
}
c = (c + offset) % 26 + 'A';
}
std::cout << value << '\n';
}