How to draw a circle inside the square ?

        

Learn with Hafiza Palwasha


How to draw circle inside the square using coding with chrome ?

Lecture No. 2

1. Open 'Coding with Chrome' (if you don't know how to open then follow lecture No. 1 ).


2. Select the option 'draw' as shown below:


3. Now select the 'rectangle' option from the list.


4. You will get the output shown below:


5. Now select the option 'circle' from the list as shown below:


6. Now drag it and adjust this block below the rectangle block as shown below:


7. Now you have to adjust the x and y coordinates to make the circle at the center of square. Here my x and y coordinates of rectangle is (250, 200) and according to that I have adjusted the coordinates of circle (425, 370) as shown below:


8. So you will get your desired output as shown below:


Homework Task

Now you have to draw a rectangle inside the circle as shown below:


Enter your comments if you are facing some difficulty.

Comments