Skip to content

Instantly share code, notes, and snippets.

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