+ 1
Pattern printing ,using c
input if 4; 1*2*3*4*3*2*1 5*6*7*6*5 8*9*8 10*
5 Respostas
+ 6
This is challenge or?
0
ya
0
void main (){
int i,j,k,z,n,num=0;
scanf("%d",&n);
for (i=0;i <n;i++){
for (j=i;j <nj++){
num=num+1;
printf ("%d*",num);
z=num;}
for (k=i;k <n-1;k++){
z=z-1;
printf ("%d*",z);}
printf ("\n");
}
}
0
👌👍