Page 1 of 1

Question 3 (40%) Write your code in Q3() that displays a pattern as shown below, according to the input size, which dete

Posted: Fri Jul 01, 2022 5:33 am
by answerhappygod
Question 3 40 Write Your Code In Q3 That Displays A Pattern As Shown Below According To The Input Size Which Dete 1
Question 3 40 Write Your Code In Q3 That Displays A Pattern As Shown Below According To The Input Size Which Dete 1 (111.71 KiB) Viewed 63 times
Please help me do this question, and please make sure that thereis not any error (runtime, logic and syntax errors are notallowed!). Please test all the cases and make sure that youfollowed question's instructions to finish this q. And please don'treply me with irrelevant information. Thanks! (Only the even caseis needed, no need to do odd case!)
Question 3 (40%) Write your code in Q3() that displays a pattern as shown below, according to the input size, which determines the number of rows in the pattern. You can assume the user always enters a positive integer. Odd Version (odd 8th digit in student ID) Sample display Input: More examples Input Input: 1 Input: 2 Input: 3 Input: 4 Input: 5 Even Version (even 8th digit in student ID) Sample display Input: Output (Odd Version) Output (Even Version) Note: There should be no blank line in the output. You should use repetition structure, with appropriate nested-loop, and NOT <iomanip> library functions in this question.