Credit PSET 1 Hacker:
The below code compiles and executes but in an infinite loop. I've tried writing the while condition a few different ways, but it seems to end up the same. I can get the code to execute fine without the while.
#include <stdio.h>
#include <math.h>
int main (void)
{
unsigned long long CC ;
int len;
// Input Section //
do
{
printf ("Give me a credit card number.\n");
scanf ("%llu", &CC);
len = (floor (log10 (CC)) + 1);
}
while (len != 15 || len != 16 || len != 13);
printf ("%d\n", len);
}