#include <stdio.h> int main( void ) { unsigned a, b; scanf( "%u%u", &a, &b ); while( b != 0 ) { unsigned t = a; a = b; b = t%b; } printf( "最大公约数为 %u\n", a ); }
[此贴子已经被作者于2022-2-11 21:13编辑过]