All pastes #902071 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-13 03:17 UTC
rendered paste body
import java.awt.*;
import hsa.Console;

public class DrawingTriangle
{
    static Console c;

    public static void main (String[] args)
    {
        int sideA, sideB;

        c = new Console ();

        c.println ("Please enter the first side length of the triangle.");
        sideA = c.readInt ();

        c.println ("Please enter the second side length of the triangle.");
        sideB = c.readInt ();


        c.drawLine (250, 250, (250 - sideA), 250);
        c.drawLine (250, 250, 250, (250 - sideB));
        c.drawLine ((250 - sideA), 250, 250, (250 - sideB));



    }
}