#include <stdio.h> int main() { char a[100],b[100],c[100],temp[100]; gets(a); gets(b); gets(c); if (strcmp(a,b)) { strcpy(temp,a); strcpy(a,b); strcpy(b,temp); } if (strcmp(a,c)) { strcpy(temp,a); strcpy(a,c); strcpy(c,temp); } if (strcmp(b,c)) { strcpy(temp,b); strcpy(b,c); strcpy(c,temp); } puts(a); puts(b); puts(c); return 0; } |
Double click to view unformatted code.