输出一个菱形图#include int main(){\x09char diamond[][5]{{' ',' ','*'},{' ','*',' ','*'},{'*',' ',' ',' ','*'},{' ','*',' ','*'},{' ',' ','*'}};\x09int i,j;\x09for(i=0;i
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 09:04:50
输出一个菱形图#includeintmain(){\x09chardiamond[][5]{{'''','''',''*''},{'''',''*'','''',''*''},{''*'','''','''','''',''*''},{'''',''*''
输出一个菱形图#include int main(){\x09char diamond[][5]{{' ',' ','*'},{' ','*',' ','*'},{'*',' ',' ',' ','*'},{' ','*',' ','*'},{' ',' ','*'}};\x09int i,j;\x09for(i=0;i
输出一个菱形图
#include
int main()
{
\x09char diamond[][5]{{' ',' ','*'},{' ','*',' ','*'},{'*',' ',' ',' ','*'},{' ','*',' ','*'},{' ',' ','*'}};
\x09int i,j;
\x09for(i=0;i
输出一个菱形图#include int main(){\x09char diamond[][5]{{' ',' ','*'},{' ','*',' ','*'},{'*',' ',' ',' ','*'},{' ','*',' ','*'},{' ',' ','*'}};\x09int i,j;\x09for(i=0;i
能正常输出啊,不过少了个等号,会出现警告.
char diamond[][5]={{' ',' ','*'},{' ','*',' ','*'},{'*',' ',' ',' ','*'},{' ','*',' ','*'},{' ',' ','*'}};