CSE1230 – Print O (Solution)

$ 24.99
Category:

Description

Given two integers W and H. Print a pattern that looks like the character ‘O’ which has a height of H lines and width of W characters. Print this pattern using stars (*). See the sample for more clarification.
Input Format
The first line will contain an integer T, representing the number of the test cases. On each of the following T lines, there will be two integers W and H (3 <= W, H <= 20). Constraints empty
Output Format
Print the pattern.
DO NOT print any extra spaces at the end of the lines.
Sample Input 0

Sample Output 0

1/1

Reviews

There are no reviews yet.

Be the first to review “CSE1230 – Print O (Solution)”

Your email address will not be published. Required fields are marked *