Code Sketch


iqra 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 outer rectangle is=16000")
setPosition(0,-45)
write("area of inner rectangleis=6000 ")