home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / CH_03 / 193.jpg < prev    next >
Joint Photographic Experts Group Image  |  2013-12-30  |  549KB  |  2550x3300
Labels: book | bulletin board | poster | reckoner | sky
OCR: Exercises and Programming Problems 193 0.25 125 1/16 n. 0623 Do not use any math library functions. However you may use your function developed in the prev rious exercise Write program that can draw patterns of characters on the screen. It should be able to draw solid square hollow box or a solid l isosceles triangle given character to draw with and the number of rows. For example if the character use and the number of rows is the figures would look like e se skt Your program should prompt the user to enter an 's' to have 1 square drawn, for a box, or a for triangle Then the user should be prompted tr enter number of rows and a character to use for draw ring Decide and imple- ment the appropriate input validation. Write function to draw each figure. Each function should take number of rows ...