69,368
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
int main(void)
{
const int ROWS = 6;
const int CHARS = 6;
int row;
char ch;
for (row = 0; row < ROWS; row++)
{
for (ch = ('A' + row); ch < ('A' + CHARS);ch++)
printf("%c", ch);
printf("\n");
}
return 0;
}
#include <stdio.h>
int main(void)
{
const int ROWS = 6;
const int CHARS = 6;
int row;
char ch;
for (row = 0; row < ROWS; row++)
{
for (ch = ('A'); ch <= ('A' + row); ch++)
printf("%c", ch);
printf("\n");
}
return 0;
}