Settings | Sign in | Sign up

The author has 2 posts.

字母图形代码

Floor 1 巨大八爪鱼 3/1/16 17:38
#include <stdio.h>
#include <stdlib.h>

void main()
{
    int m, n, i, j;
    scanf_s("%d%d", &m, &n);
    for (i = 0; i < m; i++)
    {
        for (j = 0; j < n; j++)
            putchar('A' + abs(i - j));
        putchar('\n');
    }
    system("pause");
}
Floor 2 巨大八爪鱼 3/3/16 16:25
测评结果:正确

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.