#include <stdio.h>
int main()
{
char a[] = "morming", t;
int i, j=0;
int k;
k = sizeof(a);
for(i=1; i<7; i++)
if(a[j] < a[i]){
j = i;
}
t = a[j];
a[j] = a[7];
a[7] = a[j];
puts(a);
}
#include <stdio.h>
int main()
{
char a[] = "morming", t;
int i, j=0;
int k;
k = sizeof(a);
for(i=1; i<7; i++)
if(a[j] < a[i]){
j = i;
}
t = a[j];
a[j] = a[7];
a[7] = a[j];
puts(a);
}