width = 20; breadth = 30; intArea = width * breadth; area = width * breadth; result = breadth - width * width; g.drawString("intArea = " + intArea, 20, 20); g.drawString("area = " + area, 20, 40); g.drawString("result = " + result, 20, 60);