Created
October 8, 2011 23:08
-
-
Save symtkn/1273030 to your computer and use it in GitHub Desktop.
standart girdiden girilen iki sayının obebi
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
#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