//<applet code=Triangle width=500 height=500></applet>
import java.applet.*;
import java.awt.*;
public class Triangle extends Applet
{
public void paint(Graphics g)
{
g.drawLine(177,141,177,361);
g.drawLine(177,141,438,361);
g.drawLine(177,361,438,361);
}
}
Output