New number
Problem
Given an integer positiv four-digit number. Write a program that outputs the number formed by interchanging the first and second, third and fourth digits of a given number.
Input format
Given an integer positiv four-digit numbe
Output format
Output a new number.
It is forbidden to use any algorithmic constructions except arithmetic operations. See the list of forbidden operations in the line forbidden operators.
Example
N |
Input |
Output |
1 |
4561 |
5416 |
Запрещенные операторы: sep
; format