OS_ Print
CodeChefOpen on judge ↗
Jon is given the value of n, which represents the no. of. rows. He need to print the following pattern for homework. For example: If n=4, then the pattern to be printed is ``` OS_ OS_OS_ OS_OS_OS_ OS_OS_OS_OS_ ``` Your task is to help Jon print the following pattern based on $n$. ### Input - The first and only line of input will contain a single integer $n$, denoting the number of rows. ###
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start