Home > Back-end >  The fuzzy Numbers
The fuzzy Numbers

Time:10-09

A document with a 5 digit code, because of improper safekeeping, its ten thousand digits and figures have become blurred, but know the multiples of 5 digit is 57 and 67, and now had to design an algorithm that outputs all the 5 digit satisfy these conditions, and the number of statistics such as number,

CodePudding user response:

To iterate over

Simple violence

"

CodePudding user response:

The
reference 1 floor? Victor.?? Response:
to iterate over

Simple violence

"


Can you provide a code

CodePudding user response:

For example
 int main () {
Int n1=57, n2=67;
Int PM=n1 n2 *;//LCM
Int sum=PM;
While (sum<10000) sum +=PM;
For (; Sum<100000; Sum +=PM) {//5 digits, incrementally common multiple
Printf (" % d \ n ", sum);
}
return 0;
}
  • Related