Charon


私信TA

用户名:dotcpp0637189

访问量:119

签 名:

等  级
排  名 4696
经  验 1607
参赛次数 0
文章发表 1
年  龄 18
在职情况 学生
学  校
专  业

  自我简介:

TA的其他文章

 

0.0分

1 人评分

  评论区

#include <stdio.h>
#include <string.h>
int main()
{
    char a[1000] = {'\0'}, b[1000] = {'\0'}, c[1000] = {'\0'}, t[1000] = {'\0'};
    fgets(a, 1000, stdin);
    fgets(b, 1000, stdin);
    fgets(c, 1000, stdin);
    strcpy(t, a);
    if (strcmp(a, b) > 0)
    {
        strcpy(t, a);
        strcpy(a, b);
        strcpy(b, t);
    }
    if (strcmp(b, c) > 0)
    {
        strcpy(t, b);
        strcpy(b, c);
        strcpy(c, t);
    }
    if (strcmp(a, b) > 0)
    {
        strcpy(t, a);
        strcpy(a, b);
        strcpy(b, t);
    }
    printf("%s", a);
    printf("%s", b);
    for(int i=
2023-05-14 12:52:27
  • «
  • 1
  • »