MIPI_BaseC_WebinarFRTK/05_Lecture05/06_deviders_p21.c
2024-11-13 09:22:28 +03:00

17 lines
234 B
C

#include <stdio.h>
int main(int argc, char **argv)
{
int a = 14;
int b = 35;
printf("a=%d,b=%d,",a,b);
while (b != 0)
{
int t = b;
b = a % b;
a = t;
}
printf("NOD=%d\n",a);
return 0;
}