程序如下: #include <math. h float ged(float m, float n) void maino float 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 <math.h> float gcd(float m, float n); void main( ) { float 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); } 程序如下: