标签:ret main war scanf code pause col 公倍数 最小
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> int main(){ int a, b; scanf("%d%d", &a, &b); int bigger = a * b; int i; for (i = 1; i <= bigger; i++){ if (i % a == 0 && i % b == 0){ bigger = i; printf("%d\n", bigger); } } system("pause"); return 0; }
标签:ret main war scanf code pause col 公倍数 最小
原文地址:https://www.cnblogs.com/Leafbud/p/12662480.html