许愿美团oc

末9的鼠鼠怕是要死在排序上咯……
团子求求你收了我吧
誓死效忠团子!
全部评论

相关推荐

09-26 19:58
哈尔滨理工大学
#includeint main(){    int a,c,d,e,f,g,h,l,z;    char b;    printf("请输入您想要打印的字符:");    b=getchar();    printf("请输入您想要打印菱形的行数(必须为正奇数):(输入q表示终止程序)");    while(scanf("%d",&z)==1)        {        if(z%2==0)            {                printf("请检查输入的是否为正奇数并重新输入:");                continue;            }        else            {            for(a=1;a                {                    for(c=1;c                    printf(" ");                    for(d=1;d                    putchar(b);                    printf("\n");                }            for(f=1;f                { for(g=0;g>-f;g--)                    printf(" ");                    for(h=1;h                    putchar(b);                    printf("\n");                }            }        }    return 0;}
点赞 评论 收藏
分享
09-26 19:40
哈尔滨理工大学
#includeint main(){    int a,c,d,e,f,g,h,l,z;    char b;    printf("请输入您想要打印的字符:");    b=getchar();    printf("请输入您想要打印菱形的行数(必须为正奇数):");    scanf("%d",&z);        for(a=1;a            {                for(c=1;c                printf(" ");                for(d=1;d                putchar(b);                printf("\n");            }        for(f=1;f            { for(g=z/2;g>z/2-f;g--)                printf(" ");                for(h=1;h                putchar(b);                printf("\n");            }    return 0;}
点赞 评论 收藏
分享
1 收藏 评论
分享
牛客网
牛客企业服务