#include #include #include using namespace std; int main() { char c[250],mat[50][50],*p,man[50]; int i=0,j,k; cin.get(c,250); p=strtok(c," "); while(p!=NULL){ strcpy(mat[i],p); i++; p=strtok(NULL," "); } for(j=0;j0){ strcpy(man,mat[k]); strcpy(mat[k],mat[j]); strcpy(mat[j],man); } } } for(j=0;j