Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Задача 3,3.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- char a;
- setlocale(LC_ALL, "russian");
- cin >> n;
- do
- {
- cin >> a;
- if (a == '*') break;
- a = (char)((int)a + n);
- cout << a;
- } while (true); /*(a != '*'); */
- cout << endl;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment