Code Sketch


ishrat area of rect
By: chinar
clear()
setSpeed(fast)
setFillColor(blue)
repeat(2){
    forward(100)
    right()
    forward(160)
    right()
}
hop(20)
right()
hop(30)
left()
setFillColor(white)
repeat(2){
    forward(60)
    right()
    forward(100)
    right()
}
val areaofouterrectangleInt=100*160
val areaofinnerrectangleInt=60*100
setPosition(0,-25)
write("area of ist rectangle is=16000")
setPosition(0,-50)
write("area of 2nd rectangle is=6000")