Programlama Dilleri 2 Ortak Blenlerin En By Hesab
Sign up to view full document!
SIGN UP
Programlama Dilleri -2 -
Ortak Bölenlerin En Büyüğü Hesabı Recursive int OBEB(int a, int b) { if(b==0) return a; else return OBEB(b, a%b); }
Recursive olarak kullanıcının gireceği string’in tersi #include <stdio. h> void reverse. Sentence(); int main() { printf("Enter a sentence: "); reverse. Sentence(); return 0; } void reverse. Sentence() { char c; scanf("%c", &c); if( c != 'n') { reverse. Sentence(); printf("%c", c); } }