Question: Write a go program function QuadA that prints a valid rectangle with a given width of x and height of y . The function must

Write a go program function QuadA that prints a valid rectangle with a given width of x and height of y.The function must draw the rectangles as in the examples.If x and y are positive numbers, the program should print the rectangles as seen in the examples, otherwise, the function should print nothing.Make sure you submit all the necessary files to run the program.Expected functionfunc QuadA(x,y int){}UsageHere are possible programs to test your function :Program #1package mainimport "piscine"func main(){piscine.QuadA(5,3)}And its output :$ go run .o---o||o---o$Program #2package mainimport "piscine"func main(){piscine.QuadA(5,1)}And its output :$ go run .o---o$Program #3package mainimport "piscine"func main(){piscine.QuadA(1,1)}And its output :$ go run .o$Program #4package mainimport "piscine"func main(){piscine.QuadA(1,5)}And its output :$ go run .o|||o$

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!