C++问题用*号排列菱形的问题
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/10 15:39:32
C++问题用*号排列菱形的问题
Write a C++ program which prints out a diamond shape with asterisks,like the following figure.All asterisks are stored in a two-dimensional array.The size of the array is limited from 3 to 29 and should be input from a user.Check whether an inserted size is an odd number
Write a C++ program which prints out a diamond shape with asterisks,like the following figure.All asterisks are stored in a two-dimensional array.The size of the array is limited from 3 to 29 and should be input from a user.Check whether an inserted size is an odd number
![C++问题用*号排列菱形的问题](/uploads/image/z/15674218-34-8.jpg?t=C%2B%2B%E9%97%AE%E9%A2%98%E7%94%A8%2A%E5%8F%B7%E6%8E%92%E5%88%97%E8%8F%B1%E5%BD%A2%E7%9A%84%E9%97%AE%E9%A2%98)
看看会对你有帮助的,只是用C写的而已
#include "stdio.h"
void main()
{int i,j,k;
for(i=1;i
#include "stdio.h"
void main()
{int i,j,k;
for(i=1;i