This commit is contained in:
2025-11-24 10:36:08 +01:00
parent 7b836a14bd
commit e92ee90050
16 changed files with 421 additions and 0 deletions

6
pa-03/a2/ggt.c Normal file
View File

@@ -0,0 +1,6 @@
int ggt(int a, int b) {
// https://de.wikipedia.org/wiki/Gr%C3%B6%C3%9Fter_gemeinsamer_Teiler#Rechenregeln_f%C3%BCr_Zahlen
if (a == 0) return b;
if (b == 0) return a;
return ggt(b, a % b);
}