C语言实验——打印数字图形
Time Limit: 1000MS Memory Limit: 65536KB
Submit Statistic
Problem Description
从键盘输入一个整数n(1≤n≤9),打印出指定的数字图形。
Input
正整数n(1≤n≤9)。
Output
指定数字图形。
Example Input
5
Example Output
1
121
12321
1234321
123454321
1234321
12321
121
1
Hint
Autho
打印数字图形
#include<stdio.h>
int main()
{
int i,j,n;
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=n-i;j++)
printf(" ");
for(j=1;j<=i;j++)
<