Question: 6. (15 points) Write a C program A4p6.c to read from stdin an integer n between 2 and 15 inclusive. Then the program should
6. (15 points) Write a C program A4p6.c to read from stdin an integer n between 2 and 15 inclusive. Then the program should print a pattern of stars (*) that look like the ones shown in the following sample runs. You must use loops to achieve the desired printing results. The total number of times that the keyword for and while appear cannot exceed 2. [kwang@computer] [~/temp] $ ./A4p6 enter some integer (2~15): 3 * * * [kwang@computer] [~/temp] $ ./A4p6 enter some integer (2~15): 2 * * [kwang@computer] [~/temp] $ ./A4p6 enter some integer (2~15): 4 * *
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
