C-Programming-Solutions:
You can also ask for the code of any pattern/program, just leave your problem in comment box. We will try to provide you the solution as soon as possible.
Note: I have made it flexible, enter number like (1,3,5,7,....)
a
ba
aba
baba
ababa
a
ba
aba
baba
ababa
Run the program and get the below output:
2. Pattern A and B and X in middle as below with output screen:
Program is as below:
3. Pattern Square with A on border as below with output screen:
Program is as below: