Arv3n Expert Cheater
Reputation: 0
Joined: 29 Jun 2006 Posts: 191
|
Posted: Mon May 12, 2008 11:01 am Post subject: [VB] Finding GCF in Subprocedure |
|
|
Hello world,
My task is to create a program with two textboxes (one for numerator and one for denominator), and combine them (as a fraction) and reduce the fraction to simplest form by using the GCF (Greatest Common Factor) and then show the combined/reduced fraction in a label on the Form.
Finding the GCF and then reducing the fraction should be done in a subprocedure beneath the btn_click procedure.
The only problem is.. how would I find the GCF? Can anyone give me some hints? I'd figure it out eventually, but this'll save me a shitload amt. of time.
Thanks,
Joseph
_________________
|
|