Skip to content

Instantly share code, notes, and snippets.

@symtkn
Created October 8, 2011 23:08
Show Gist options
  • Save symtkn/1273030 to your computer and use it in GitHub Desktop.
Save symtkn/1273030 to your computer and use it in GitHub Desktop.
standart girdiden girilen iki sayının obebi
#include <stdio.h>
int
main(void)
{
int say1, say2, i;
printf("Sayıları giriniz: ");
scanf("%d%d", &say1, &say2);
for(i = (say1 + say2) / 2; i > 0; i --)
if(say1 % i == 0 && say2 % i == 0 ){
printf("OBEB : %d\n", i);
break;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment