MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / solve

Function solve

CPP/pandigital_numbers/code.cpp:291–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291void solve()
292{
293
294 int start = 100, end = 1000;
295 for (int i = start; i < end; i++)
296 {
297 int curr = i;
298 if (curr % 2 == 0)
299 {
300 int a, b, c;
301 a = curr % 10;
302 curr /= 10;
303 b = curr % 10;
304 curr /= 10;
305 c = curr % 10;
306 curr /= 10;
307
308 if (a != b && b != c && c != a)
309 {
310 // cout << i << endl;
311 func(i);
312 }
313 }
314 }
315}
316
317int main()
318{

Callers 1

mainFunction · 0.70

Calls 1

funcFunction · 0.70

Tested by

no test coverage detected