Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int v(int);
- int main()
- {
- setlocale(LC_ALL, "Russian");
- int a;
- printf_s("Введите число ");
- scanf_s("%d", &a);
- printf_s("%d", v(a));
- return 0;
- }
- int v(int b)
- {
- int x;
- if (b > 9 && b < 100)
- x = 10 * (b % 10) + b / 10;
- return x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement