C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
Statement:create a program such that it accepts a string S of N characters. S should only contains upper and lower-case characters.
Numbers and special case characters are not allowed in S.Now rearrange the string S in alphabetical order (a to z) .
In order to modify the string S consider the following rule.
Do not differentiate between lower-case and upper-case character of same alphabet and if both cases are available of same character preserve the order as of the
original string.
For example, if string S is “CxBdbazA” here alphabet “b” and “a” both present in upper case and lower case. but upper case “B” appears before lower case “b” and
lower-case “a” appears before upper-case “A” so in modified string alphabet orders will be “aABbCdxz”.
Input:first line contains string S of contains N characters without space.
Output: output contains the rearranged string S.
Constraints:5<=N<=25
take character array size as 25 to store string.
Example:
Hello
eHllo
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run