You need to click on one of the two buttons. The programm will ask you to enter two numbers (p and q). And with those two values it will calculate the gcd or the lmc of the two numbers you entered, depending on whitch butten you clicked before.
The programm calculates the gcd and the lmc using the Algorithm of Euclides. This was not that easy to do with scratch. I tried it first with Microsoft Excel. If you have any sugestions, please enter them in the comments below. I am also working on a version 2.0 for this programm, whitch can solve diophantic equations using this algorithm.