by Boba Fett (1 Submission)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 13th April 1999
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Calculate Slope of Two Points
API Declarations
'Name the boxes xpos1, ypos1, xpos2, ypos2, and slopeans
'name the labels First X, First Y, Second X, and Second y and Answer 'respectively
xpos1.text = x
xpos2.text = x2
ypos1.text = y
ypos2.text = y2
c = (y2-y)\(x2-x)
slopeans.text = c