Questions


August 2021 2 76 Report
Write a 'C' program to arrange the even digits first and odd digits second of the given number vice versa.

Input Format

First input is option and next the value If the option is 0 - odd digits first 1 - even digits first

Constraints

1 ≤ num ≤ 100000007

Output Format

print the value

Sample Input 0

0 89745
Sample Output 0

97584

Answers & Comments


Add an Answer


Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Helpful Social

Copyright © 2024 EHUB.TIPS team's - All rights reserved.