mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08: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);
|
// printf("1/%-4u\t ", deno);
|
||||||
unsigned short index = 0, num_digits;
|
unsigned short index = 0, num_digits;
|
||||||
|
|
||||||
while (rem != 0)
|
while (true)
|
||||||
{
|
{
|
||||||
rem = (rem * 10) % deno;
|
rem = (rem * 10) % deno;
|
||||||
if (rem == 0)
|
if (rem == 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user