Code Sketch


Ruqiya Rectangle.kojo
By: chinar
clear()
setSpeed(medium)
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 first:Int=160*100
 val second:Int=60*100
 val third: Int=first-second
 setPosition(0,-25)
 write("area of first Rectangle is" + first) 
  setPosition(0,-50)
  write("area of second Rectangle is" + second)