程序如下: #include <stdio. h> #include <math.h> void maino float gedo, m, n, g printf“ n Input n,n:Ⅶn”); scanf(“%f,%f,&m2&n) g=gcd(m, n) printf(In gcd (%2.0f,%02.0f)=%5.0f\n, m, n, g);#include <stdio.h> #include <math.h> void main( ) { float gcd( ),m,n,g; printf(“\n Input m, n:\n”); scanf(“%f,%f”,&m,&n); g=gcd(m,n); printf(“\n gcd(%2.0f,%2.0f)=%5.0f\n”,m,n,g); } 程序如下: