Code Sketch


rect
By: chinar
clear() 
setSpeed(superFast)
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() 
    }
setPosition(10,-50)
val first:Int=160*100
val second:Int=100*60
val third:Int=120*60
write("area of the first rectangle ")
write("area of the second rectangle")