PLEASE HELP ME!!! CODE THIS IN C PLEASE
Posted: Fri Jul 01, 2022 5:37 am
PLEASE HELP ME!!!
CODE THIS IN C PLEASE
Write a program in C that uses a function called printStars(n) where n is an ineteger provided by the user in the main() and it denotes the number of rows. PrintStars(n) then prints 2" asterisks until the n-th row if n is odd and prints 2n asterisks until the n-th row if n is even. Sample runs: Enter n: 5 Output: * * * * * * * * * Enter n: 4 * Output: * * * * *
CODE THIS IN C PLEASE
Write a program in C that uses a function called printStars(n) where n is an ineteger provided by the user in the main() and it denotes the number of rows. PrintStars(n) then prints 2" asterisks until the n-th row if n is odd and prints 2n asterisks until the n-th row if n is even. Sample runs: Enter n: 5 Output: * * * * * * * * * Enter n: 4 * Output: * * * * *