>however when I enter the number 47715497443 (which is the test number) it gives off a not valid entry
Integer overflow?Code:#include <stdio.h> #include <limits.h> int main(void) { printf("%d\n", INT_MAX); puts("47715497443"); return 0; } /* my output 2147483647 47715497443 */