Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include<windows.h>
- using namespace std;
- void main()
- {
- setlocale(LC_ALL, "Russian");
- int i;
- char a;
- cout << "Введеите число: ";
- cin >> a;
- i = ((int)a + 1) % 10;
- cout << i << endl;
- i = ((int)a + 13) % 10;
- cout << i << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment