Docsity

Quiz 5 with Problem - Computer Programming - Fall 2007 | CMSC 106, Quizzes of Computer Science

Partial preview of the text

Download Quiz 5 with Problem - Computer Programming - Fall 2007 | CMSC 106 and more Quizzes Computer Science in PDF only on Docsity!

Name (PRINTED): Student TD #: Seelion # (or TA’s: name and time) CMSC 106 Quiz #5 Fall 2007 1. [18 pts.] Write a function which would be used with the following main so that the as the first parameter is printed the munber of times indicated by the second parameter. If the integer passed is non-positive, the function should do nothing. #include int _main(Q{ writechars(’a’,4); //output would be aaaa writechars(’b’,3); //output would be bbb writechars(’x’,6); //output would be — xxxxxx return 0; } (over)