answersLogoWhite

0

To draw a random triangle.... Declare six variables.... H1 and V1 H2 and V2 H3 and V3 Then using the random function apply the random to the height of your form - this will be H1 Do the same with the width of the form - this will be V1 -- do this twice more, for H2 and V2 - and then for H3 and V3.. Then draw a line from (H1, V1) to (H2, V2) Draw another line from (H1, V1) to (H3, V3) Draw the last line from (H2, V2) to (H3, V3) -- I can't guarantee it will look great, but it _will_ be a triangle. ==== To draw a specific triangle you need much more coding, involving sine rule an other trigonometry.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write a program in qbasic to make a hut using print statemant?

a triangle then a square :)


Write a pascal program that compute an area of a triangle?

{A program to compute the area of a triangle} {by Ogboin W. Meshach} Var; b,h:real; BEGIN Writeln('Triangle'); Write('Base: '); Readln(base); Write('Height: '); Readln(height); area:=0.5*base*height; Writeln('Area: ', area :0:2); End.


Write a program that input a positive integer and prints a triangle using for loop?

write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?


How do you write a qbasic program to find area and circumerence of a circle?

Write a program that calculates the area of a triangle in QBASIC


Write a program to calculate area of triangle and check whether entered sides can make triangle or not..?

#include <stdio.h> main() { int r,b,h; printf("Enter the value of Base and Hight"); scanf("%d%d",&b,&h); r = ((b*h)/2); printf("Area of Triangle=%d",r); }


How do you write a program to print numbers from star one and next line star two in php?

Try the triangle program on a search engine. Replace numbers with stars and that should do the trick


Was there a program called the triangle?

yea


Can a write triangle be equilateral?

No


Write a C plus plus function that print a triangle of stars?

Write a function that print a triangle of stars.


How do you write a program for triangle pattern 1 3 5 7 5 7 9 11 7 9 11 13?

Use a text-editor.


How do you write a java program to make a periodic table?

See the related links section for a link to a JAR file containing this program.


Can you write me a sentence using the word triangle?

He drew a triangle on his geometry test.