Question: Could you help me please? My 5 th student ID = Odd.Please make sure that programme should not have any syntax error and it can
Could you help me please? My 5 th student ID = Odd.Please make sure that programme should not have any syntax error and it can be run according to the corresponding input and output. And should be used repetition structure, with appropriate nested-loop, and NOT library functions in this question. Thanks a lot !!!!


Write your code in Q3 () that displays a pattern of H or K, as shown below, according to the input size (an integer value). If the input size is 0 or negative number, then your program should print nothing. Determine the odd or even version of this question using the 5th digit of your student ID number. Odd Version (odd 5th digit in student ID) Even Version (even 5th digit in student ID) Display H Display K Note: You should use repetition structure, with appropriate nested-loop, and NOT library functions in this question. IMPORTANT NOTE: You need to follow the spacing as shown in the sample display. There should be NO space between adjacent asterisks and no additional blank lines in the output. There is also NO prompt message for the input size. DO NOT add extra text in the output which will be considered as incorrect in marking
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
