This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
def GCD(a , b): | |
if(b == 0): | |
return a | |
return GCD(b, a - math.floor(a/b)*b) | |
# Input values here and run | |
print(GCD(9876, 54321)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FOR THE PURPOSES of this code sample, some code essential | |
// for the functioning of this script was removed. | |
// Please view the "Finding PPTs" page source of | |
// http://pramodk.net/GT/MATH2803/PPTs/ | |
// to see a functional example. | |
$("input[name='submit']").click(function () { // Upon clicking the submit button, run this function | |
// Get the input values | |
var maxS = $("input[name='s_bound']").val(); |
NewerOlder