一个正整数与3的和是5的倍数,与3的差是6的倍数,编写一个程序求符合条件的最小数。
#include <stdio.h> int main() { int n = 1; while(1){ if((n + 3) % 5 == 0 && (n - 3) % 6 == 0){ printf("%d",n); break; } n ++; } return 0; }