code4sk/c/sourcecode/朱森森带领的奇妙冒险/C语言程序设计入门过关题集-顺序结构/输出菱形图案.cpp
2023-12-15 22:38:26 +08:00

33 lines
No EOL
486 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 7-5 输出菱形图案
分数 20
作者 张高燕
单位 浙大城市学院
本题要求编写程序输出指定的由“A”组成的菱形图案。
输入格式:
本题无输入
输出格式:
按照下列格式输出由“A”组成的菱形图案。
A
A A
A
代码长度限制
16 KB
时间限制
400 ms
内存限制
64 MB */
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf(" A\n");
printf("A A\n");
printf(" A\n");
return 0;
}