#include
#include
int main()
{
int i, j;
char str[10][50], temp[50];
printf("Enter 10 words:\n");
for(i=0; i<10; ++i)
scanf("%s[^\n]",str[i]);
for(i=0; i<9; ++i)
for(j=i+1; j<10 ; ++j)
{
if(strcmp(str[i], str[j])>0)
{
strcpy(temp, str[i]);
strcpy(str[i], str[j]);
strcpy(str[j], temp);
}
}
printf("\nIn lexicographical order: \n");
for(i=0; i<10; ++i)
{
puts(str[i]);
}
return 0;
} https://www.jdoodle.com/embed/v0/c/gcc-5.3.0/6WK
Brief : Dragon Age: Inquisition is an action role-playing video game developed by Bioware Edmonton and published by Electronic Arts . The third major game in the Dragon Age franchise, Dragon Age: Inquisition is the sequel to Dragon Age: Origins and Dragon Age II . The game was released worldwide in November 2014 for Microsoft Windows , PlayStation 3 , PlayStation 4 , Xbox 360 , and Xbox One . Repack Size: 20.1~23.9 GB
Comments
Post a Comment
share your thoughts ....