Question: I need a C program that prints out these exact patterns when input size is: Enter size: 13 *---*---*---* -*---*-*---*- --*---*---*-- ---*-----*--- *---*---*---* -*---*-*---*- --*---*---*--
I need a C program that prints out these exact patterns when input size is:
Enter size: 13 *---*---*---* -*---*-*---*- --*---*---*-- ---*-----*--- *---*---*---* -*---*-*---*- --*---*---*-- -*---*-*---*- *---*---*---* ---*-----*--- --*---*---*-- -*---*-*---*- *---*---*---* Enter size: 17 *---*---*---*---* -*---*-----*---*- --*---*---*---*-- ---*---*-*---*--- *---*---*---*---* -*---*-----*---*- --*---*---*---*-- ---*---*-*---*--- *---*---*---*---* ---*---*-*---*--- --*---*---*---*-- -*---*-----*---*- *---*---*---*---* ---*---*-*---*--- --*---*---*---*-- -*---*-----*---*- *---*---*---*---*
Not that the pattern changes depending on the input size: Other cases are:
Enter size: 5 *---* -*-*- --*-- -*-*- *---* Enter size: 7 *-----* -*---*- --*-*-- ---*--- --*-*-- -*---*- *-----* Enter size: 9
*---*---* -*-----*- --*---*-- ---*-*--- *---*---* ---*-*--- --*---*-- -*-----*- *---*---*
After 7 the pattern changes from an X to a more symmetrical pattern. I need the patterns to be identicial to what I requested
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
