We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2213468 commit b6cc0c5Copy full SHA for b6cc0c5
project_euler/problem_26/sol1.c
@@ -41,7 +41,7 @@ int main(int argc, char *argv[])
41
// printf("1/%-4u\t ", deno);
42
unsigned short index = 0, num_digits;
43
44
- while (rem != 0)
+ while (true)
45
{
46
rem = (rem * 10) % deno;
47
if (rem == 0)
0 commit comments