JAVA CODE
//Ex3_1 import java.applet.Applet; import java.awt.Graphics; public class Ex3_1 extends Applet { public void paint (Graphics g) { int x[] = { 10, 10, 150 }; int y[] = { 10, 150, 150 }; g.drawPolygon (x, y, 3); } }