Skip to content

Instantly share code, notes, and snippets.

@wwhhjj
Created November 8, 2011 15:56
Show Gist options
  • Save wwhhjj/1348162 to your computer and use it in GitHub Desktop.
Save wwhhjj/1348162 to your computer and use it in GitHub Desktop.
#include"stdio.h"
main()
{
int a,b,c;
scanf ("%d,%d",&a,&b);
while (b!=0){
c = a%b;
a = b;
b = c;
}
printf("%d",a);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment