answersLogoWhite

0


Best Answer

/*determine the pattern 1234321*/

#include<stdio.h>

#include<conio.h>

main()

{

int i, j;

for (i=1; i<=7; i++)

{

if (i<5)

{

j=i;

printf("\n %d", j);

}

else

{

j=8-i;

printf("\n %d", j);

}

}

getch()

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

6y ago

int i, j;for (i=3; i>0; --i) {

for (j=1; j<i; ++j)

printf ("%d", j);

for (;j>0; --j)

printf ("%d", j);

printf("\n");

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is C program pattern 12321 121 1?
Write your answer...
Submit
Still have questions?
magnify glass
imp