View Code of Problem 78

#include<stdio.h>
#include<string.h>
main()
{
	char str1[100],str2[100],str3[100];
	gets(str1);
	gets(str2);
	gets(str3);
	if(strcmp(str1,str2)>0){
		if(strcmp(str2,str3)>0){
			puts(str3);
			puts(str2);
		}
		else{	
		    puts(str2);
		    puts(str3);
		    
		}
		puts(str1);
}
	else {
	if(strcmp(str1,str3)>0){
		    puts(str3);
		    puts(str1);
		}
	     else{
	    	puts(str1);
	    	puts(str3);
	    }
		puts(str2);
	}
	    
}

Double click to view unformatted code.


Back to problem 78