mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-23 22:09:46 +03:00
fix: LGTM warnings/alerts
Thanks to @siriak for giving the solution at Discord! Co-authored-by: Andrii Siriak <siryaka@gmail.com>
This commit is contained in:
parent
221346808a
commit
b6cc0c5601
@ -41,7 +41,7 @@ int main(int argc, char *argv[])
|
||||
// printf("1/%-4u\t ", deno);
|
||||
unsigned short index = 0, num_digits;
|
||||
|
||||
while (rem != 0)
|
||||
while (true)
|
||||
{
|
||||
rem = (rem * 10) % deno;
|
||||
if (rem == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user