def nwd (a, b): while b!=0: pom = b b=a%b a=pom return a print(nwd(25,35))print(nwd(12,39))
Standard input is empty
5 3
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!