Computer Science, asked by pradeep7251, 11 months ago

 the statement which would enable you to create a rectangle having corners (10,30),(50,30), (10,80), (50,80). The rectangle should be given the name "r1".​

Answers

Answered by Raghav1330
0

Answer:

Explanation:

Firstly we realize that a computer screen is divided into the pixel cells that allows it to separate itself as co ordinates in the output screen.

Hence we use the gotoxy function.

GotoXY is a predefined function or procedure that gives the positions of the cursor at (X,Y), X in horizontal, Y in vertical direction corresponding to the origin of the current window

Hence for the rectangular shape we will write

gotoxy(10,30)

gotoxy(50,30)

gotoxy(10,80)

gotoxy(50,80)

Similar questions